// GET: Departamentos/Details/5 public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var departamento = await _departamentoService.FindByIdAsync(id.Value); return(View(departamento)); }