aboutsummaryrefslogtreecommitdiff
path: root/API/Controllers
diff options
context:
space:
mode:
Diffstat (limited to 'API/Controllers')
-rw-r--r--API/Controllers/UserController.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/API/Controllers/UserController.cs b/API/Controllers/UserController.cs
index ed3d917..b75d081 100644
--- a/API/Controllers/UserController.cs
+++ b/API/Controllers/UserController.cs
@@ -36,8 +36,12 @@ namespace API.Controllers
return await this._service.GetUserById(id);
}
- // //Update
- // [HttpPut]
+ //Update
+ [HttpPut]
+ public async Task<HttpStatusCode> Update(int id, [FromBody] UserDTO userDTO)
+ {
+ return await this._service.UpdateUser(id, userDTO);
+ }
// //Delete
// [HttpDelete]