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)); }
public TarefaViewModel Details(Guid?id) { return(_tarefaAppService.BuscarPorId(id.Value).Result); }