aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Controllers
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2020-12-15 20:03:21 +0200
committertranstrike <transtrike@gmail.com>2020-12-15 20:03:21 +0200
commitfb8d06ecb1d38e1430902342f75bd135db44dafa (patch)
tree4e9715d0bf4624a06ee0d0c540ea4ae573acc97f /src/DevHive.Web/Controllers
parent85b41def10318ff04e72991008ba7d0e623a7674 (diff)
downloadDevHive-fb8d06ecb1d38e1430902342f75bd135db44dafa.tar
DevHive-fb8d06ecb1d38e1430902342f75bd135db44dafa.tar.gz
DevHive-fb8d06ecb1d38e1430902342f75bd135db44dafa.zip
Fixed UpdateUser in UserService
Diffstat (limited to 'src/DevHive.Web/Controllers')
-rw-r--r--src/DevHive.Web/Controllers/UserController.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DevHive.Web/Controllers/UserController.cs b/src/DevHive.Web/Controllers/UserController.cs
index 480fbe4..900af42 100644
--- a/src/DevHive.Web/Controllers/UserController.cs
+++ b/src/DevHive.Web/Controllers/UserController.cs
@@ -55,8 +55,9 @@ namespace DevHive.Web.Controllers
public async Task<IActionResult> Update(Guid id, [FromBody] UpdateUserWebModel updateModel)
{
UpdateUserServiceModel updateUserServiceModel = this._userMapper.Map<UpdateUserServiceModel>(updateModel);
+ updateUserServiceModel.Id = id;
- return await this._service.UpdateUser(id, updateUserServiceModel);
+ return await this._service.UpdateUser(updateUserServiceModel);
}
//Delete