diff options
Diffstat (limited to 'API/Controllers/UserController.cs')
| -rw-r--r-- | API/Controllers/UserController.cs | 8 |
1 files changed, 4 insertions, 4 deletions
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<HttpStatusCode> Create([FromBody] UserDTO userDTO) + public async Task<IActionResult> Create([FromBody] UserDTO userDTO) { return await this._service.CreateUser(userDTO); } //Read [HttpGet] - public async Task<User> GetById(int id) + public async Task<IActionResult> GetById(int id) { return await this._service.GetUserById(id); } //Update [HttpPut] - public async Task<HttpStatusCode> Update(int id, [FromBody] UserDTO userDTO) + public async Task<IActionResult> Update(int id, [FromBody] UserDTO userDTO) { return await this._service.UpdateUser(id, userDTO); } //Delete [HttpDelete] - public async Task<HttpStatusCode> Delete(int id) + public async Task<IActionResult> Delete(int id) { return await this._service.DeleteUser(id); } |
