public async Task <IActionResult> Details(Guid?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var tarefa = await _tarefaAppService.BuscarPorId(id.Value);

            if (tarefa == null)
            {
                return(NotFound());
            }

            return(View(tarefa));
        }
示例#2
0
 public TarefaViewModel Details(Guid?id)
 {
     return(_tarefaAppService.BuscarPorId(id.Value).Result);
 }