public async Task <ActionResult <Model.Receita> > DeleteAsync(int id) { try { var total = await _service.RemoveAsync(id); if (total > 0) { return(new OkResult()); } return(new NotFoundResult()); } catch (Exception ex) { return(new BadRequestObjectResult(ex)); } }