public async Task <IActionResult> Index() { return(View(await _departmentsDAO.FindAllAsync())); }
public async Task <IActionResult> Create() { //Manda lista para poder selecionar uma departamento no cadastro ViewBag.Departments = new SelectList(await _departmentsDAO.FindAllAsync(), "Id", "Nome"); return(View()); }