Пример #1
0
 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());
 }
Пример #2
0
 public IActionResult Index()
 {
     ViewBag.DataHora = DateTime.Now;
     return(View(_departamentoDAO.ListarDepartamentos()));
 }