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()); }
// GET: Cargo public IActionResult Index() { return(View(_cargoDAO.ListarTodos())); }