aboutsummaryrefslogtreecommitdiff
path: root/API/Controllers/UserController.cs
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2020-12-10 12:11:48 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2020-12-10 12:11:48 +0200
commit68edd82480a4107ec32adaeefa479c6364b0c841 (patch)
tree1564ed90b5688af9be08ef25d729cfe134331931 /API/Controllers/UserController.cs
parent2b3e8644f4e581874d54ac3950603edafba72bd6 (diff)
downloadDevHive-68edd82480a4107ec32adaeefa479c6364b0c841.tar
DevHive-68edd82480a4107ec32adaeefa479c6364b0c841.tar.gz
DevHive-68edd82480a4107ec32adaeefa479c6364b0c841.zip
Implemented User put (update) query (that works with test values, needs mapper)
Diffstat (limited to 'API/Controllers/UserController.cs')
-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]