public IActionResult Cadastrar(int id) { ViewBag.DptoResponsavel = new SelectList(_departamentoDAO.ListarDepartamentos(), "DepartamentoId", "NomeDepartamento"); ViewBag.NomeStatus = new SelectList(_statusDAO.ListarStatusPorNome(), "TipoStatusId", "NomeStatus"); ViewBag.ProjetoId = id; return(View()); }
public IActionResult Index() { ViewBag.DataHora = DateTime.Now; return(View(_departamentoDAO.ListarDepartamentos())); }