diff --git a/server/AyaNova/Controllers/DashboardViewController.cs b/server/AyaNova/Controllers/DashboardViewController.cs index cbfcfba4..e871306b 100644 --- a/server/AyaNova/Controllers/DashboardViewController.cs +++ b/server/AyaNova/Controllers/DashboardViewController.cs @@ -79,10 +79,10 @@ namespace AyaNova.Api.Controllers /// /// Put (update) logged in User's Dashboard view /// - /// + /// /// [HttpPut()] - public async Task PutDashboardView([FromBody] DashboardView inObj) + public async Task 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) diff --git a/server/AyaNova/biz/DashboardViewBiz.cs b/server/AyaNova/biz/DashboardViewBiz.cs index c44274e1..0693997d 100644 --- a/server/AyaNova/biz/DashboardViewBiz.cs +++ b/server/AyaNova/biz/DashboardViewBiz.cs @@ -70,7 +70,7 @@ namespace AyaNova.Biz // //put - internal async Task PutAsync(DashboardView dbObject, DashboardView inObj) + internal async Task PutAsync(DashboardView dbObject, string theView) { //always only current user id inObj.UserId = UserId;