private async Task <IActionResult> ObterVisaoCursoPorId(long?id) { if (id == null) { return(NotFound()); } var curso = await cursoDAL.ObterCursosPorId((long)id); if (curso == null) { return(NotFound()); } return(View(curso)); }
private async Task <IActionResult> ObterVisaoCursoPorId(long?id) { if (id == null) { return(NotFound()); } var curso = await cursoDAL.ObterCursosPorId((long)id); if (curso == null) { return(NotFound()); } return(View(curso)); }