This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user