This commit is contained in:
@@ -79,10 +79,10 @@ namespace AyaNova.Api.Controllers
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Put (update) logged in User's Dashboard view
|
/// Put (update) logged in User's Dashboard view
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="inObj"></param>
|
/// <param name="theView"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPut()]
|
[HttpPut()]
|
||||||
public async Task<IActionResult> PutDashboardView([FromBody] DashboardView inObj)
|
public async Task<IActionResult> PutDashboardView([FromBody] string theView)
|
||||||
{
|
{
|
||||||
if (!serverState.IsOpen)
|
if (!serverState.IsOpen)
|
||||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||||
@@ -103,7 +103,7 @@ namespace AyaNova.Api.Controllers
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (!await biz.PutAsync(o, inObj))
|
if (!await biz.PutAsync(o, theView))
|
||||||
return BadRequest(new ApiErrorResponse(biz.Errors));
|
return BadRequest(new ApiErrorResponse(biz.Errors));
|
||||||
}
|
}
|
||||||
catch (DbUpdateConcurrencyException)
|
catch (DbUpdateConcurrencyException)
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ namespace AyaNova.Biz
|
|||||||
//
|
//
|
||||||
|
|
||||||
//put
|
//put
|
||||||
internal async Task<bool> PutAsync(DashboardView dbObject, DashboardView inObj)
|
internal async Task<bool> PutAsync(DashboardView dbObject, string theView)
|
||||||
{
|
{
|
||||||
//always only current user id
|
//always only current user id
|
||||||
inObj.UserId = UserId;
|
inObj.UserId = UserId;
|
||||||
|
|||||||
Reference in New Issue
Block a user