From 68edd82480a4107ec32adaeefa479c6364b0c841 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 10 Dec 2020 12:11:48 +0200 Subject: Implemented User put (update) query (that works with test values, needs mapper) --- API/Controllers/UserController.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'API/Controllers/UserController.cs') 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 Update(int id, [FromBody] UserDTO userDTO) + { + return await this._service.UpdateUser(id, userDTO); + } // //Delete // [HttpDelete] -- cgit v1.2.3