// GET: Curso/Details/5 public async Task <IActionResult> Details(Guid?id) { if (id == null) { return(NotFound()); } var curso = await _cursoRepository.GetByIdAsync(id.Value); if (curso == null) { return(NotFound()); } return(View(curso)); }