From 30e30a2cbe5e23c5c35b20bc072d752cb14b6ab0 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 30 Oct 2020 19:22:31 +0000 Subject: [PATCH] --- server/AyaNova/Controllers/DashboardViewController.cs | 6 +++--- server/AyaNova/biz/DashboardViewBiz.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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;