diff --git a/WebApi/Controllers/v1/ProductController.cs b/WebApi/Controllers/v1/ProductController.cs index 743a3db..7a37d56 100644 --- a/WebApi/Controllers/v1/ProductController.cs +++ b/WebApi/Controllers/v1/ProductController.cs @@ -51,7 +51,8 @@ public async Task Put(int id, UpdateProductCommand command) { return BadRequest(); } - return Ok(await Mediator.Send(command)); + await Mediator.Send(command); + return NoContent(); } // DELETE api//5 @@ -59,7 +60,8 @@ public async Task Put(int id, UpdateProductCommand command) [Authorize] public async Task Delete(int id) { - return Ok(await Mediator.Send(new DeleteProductByIdCommand { Id = id })); + await Mediator.Send(new DeleteProductByIdCommand { Id = id }) + return NoContent(); } } }