Пример #1
0
 public IList <Cargo> ListaCargo()
 {
     return(CargoDAO.ListarTodos());
 }
 // GET: Agente/Create
 public IActionResult Create()
 {
     ViewBag.Cargos  = new SelectList(_cargoDAO.ListarTodos(), "CargoId", "NomeCargo");
     ViewBag.Setores = new SelectList(_setorDAO.ListarTodos(), "SetorId", "NomeSetor");
     return(View());
 }
Пример #3
0
 // GET: Cargo
 public IActionResult Index()
 {
     return(View(_cargoDAO.ListarTodos()));
 }