This commit is contained in:
2020-10-30 19:22:31 +00:00
parent 6c87ae8151
commit 30e30a2cbe
2 changed files with 4 additions and 4 deletions

View File

@@ -79,10 +79,10 @@ namespace AyaNova.Api.Controllers
/// <summary>
/// Put (update) logged in User's Dashboard view
/// </summary>
/// <param name="inObj"></param>
/// <param name="theView"></param>
/// <returns></returns>
[HttpPut()]
public async Task<IActionResult> PutDashboardView([FromBody] DashboardView inObj)
public async Task<IActionResult> PutDashboardView([FromBody] string theView)
{
if (!serverState.IsOpen)
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
@@ -103,7 +103,7 @@ namespace AyaNova.Api.Controllers
try
{
if (!await biz.PutAsync(o, inObj))
if (!await biz.PutAsync(o, theView))
return BadRequest(new ApiErrorResponse(biz.Errors));
}
catch (DbUpdateConcurrencyException)

View File

@@ -70,7 +70,7 @@ namespace AyaNova.Biz
//
//put
internal async Task<bool> PutAsync(DashboardView dbObject, DashboardView inObj)
internal async Task<bool> PutAsync(DashboardView dbObject, string theView)
{
//always only current user id
inObj.UserId = UserId;