From 21db5d0e446c1a2dfa3c8b3acee2bf4dace674cf Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Wed, 14 Apr 2021 19:57:21 +0430 Subject: [PATCH] #104 put api fix --- RMuseum/Controllers/GanjoorController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RMuseum/Controllers/GanjoorController.cs b/RMuseum/Controllers/GanjoorController.cs index fcb27880..132c17f3 100644 --- a/RMuseum/Controllers/GanjoorController.cs +++ b/RMuseum/Controllers/GanjoorController.cs @@ -221,7 +221,7 @@ namespace RMuseum.Controllers [ProducesResponseType((int)HttpStatusCode.OK, Type = typeof(GanjoorPageCompleteViewModel))] [ProducesResponseType((int)HttpStatusCode.BadRequest, Type = typeof(string))] [ProducesResponseType((int)HttpStatusCode.NotFound)] - public async Task ModifyPage(int id, GanjoorModifyPageViewModel page) + public async Task ModifyPage(int id, [FromBody]GanjoorModifyPageViewModel page) { Guid userId = new Guid(User.Claims.FirstOrDefault(c => c.Type == "UserId").Value);