public async Task <IActionResult> Detalhes(int?id) { var model = new DespesaModel(); if (id.HasValue) { model.Detalhe = await despesaFacade.Get(id.Value); if (model.Detalhe == null) { return(NotFound()); } } return(View(model)); }
public Task <Despesa> Get(int id) => _despesaFacade.Get(id);