Website Summary Files Commits Branches @commit @diff @stats
path: root / src / DevHive.Web / Controllers / UserController.cs
diff options
context:
space:
mode:
Commitfb8d06ecb1d38e1430902342f75bd135db44dafa (patch)
Author
 transtrike <transtrike@gmail.com>
2020-12-15 20:03:21 +0200
Committer
 transtrike <transtrike@gmail.com>
2020-12-15 20:03:21 +0200
Files4e9715d0bf4624a06ee0d0c540ea4ae573acc97f /src/DevHive.Web/Controllers/UserController.cs
DevHive-fb8d06ecb1d38e1430902342f75bd135db44dafa.tar
DevHive-fb8d06ecb1d38e1430902342f75bd135db44dafa.tar.gz
DevHive-fb8d06ecb1d38e1430902342f75bd135db44dafa.zip
Parent85b41def10318ff04e72991008ba7d0e623a7674 (diff)
Fixed UpdateUser in UserService
1 files changed, 2 insertions, 1 deletions
-rw-r--r--src/DevHive.Web/Controllers/UserController.cs3
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