public async Task <IActionResult> Delete(int pizzaId) { IServiceResult result = await _service.DeleteAsync(pizzaId); if (result.Result == ResultType.Deleted) { return(Ok()); } else { return(BadRequest()); } }