From 5a64d52df66264c9f752b03f38a0bc40ddf25931 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 11 Dec 2020 15:23:15 +0200 Subject: Made UserController (and UserService) return IActionResult, rather than HttpStatusCode --- API/Controllers/UserController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'API/Controllers/UserController.cs') diff --git a/API/Controllers/UserController.cs b/API/Controllers/UserController.cs index 3f18dbe..7e75e3e 100644 --- a/API/Controllers/UserController.cs +++ b/API/Controllers/UserController.cs @@ -23,28 +23,28 @@ namespace API.Controllers //Create [HttpPost] - public async Task Create([FromBody] UserDTO userDTO) + public async Task Create([FromBody] UserDTO userDTO) { return await this._service.CreateUser(userDTO); } //Read [HttpGet] - public async Task GetById(int id) + public async Task GetById(int id) { return await this._service.GetUserById(id); } //Update [HttpPut] - public async Task Update(int id, [FromBody] UserDTO userDTO) + public async Task Update(int id, [FromBody] UserDTO userDTO) { return await this._service.UpdateUser(id, userDTO); } //Delete [HttpDelete] - public async Task Delete(int id) + public async Task Delete(int id) { return await this._service.DeleteUser(id); } -- cgit v1.2.3