예제 #1
0
        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));
        }
예제 #2
0
 public Task <Despesa> Get(int id) => _despesaFacade.Get(id);