public PerfilController() { _db = new PerfilCo(); }
private void PopulaCombo() { var perfilCo = new PerfilCo(); var unidadeCo = new UnidadeCo(); var cargoCo = new CargoCo(); //var jornadaCo = new JornadaCo(); ViewBag.Perfil = perfilCo.Listar().Select(x => new { x.Id, Nome = x.NomePergil }); ViewBag.Unidade = unidadeCo.Listar().Select(x => new { x.Id, Nome = x.NomeUnidade }); ViewBag.Cargo = cargoCo.Listar().Select(x => new { x.Id, Nome = x.NomeCargo }); //ViewBag.Jornada = jornadaCo.Listar().Select(x => new { x.Id, Nome = x.Descricao }); }