diff options
Diffstat (limited to 'src/DevHive.Web/Controllers/UserController.cs')
| -rw-r--r-- | src/DevHive.Web/Controllers/UserController.cs | 3 |
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 |
