Esempio n. 1
0
        private void Consulta()
        {
            GrupoRepositorio consGrupo = new GrupoRepositorio();

            var grupos = consGrupo.GetAll();

            grd_Dados.DataSource = grupos;
            grd_Dados.Refresh();

            consGrupo.Dispose();
        }
Esempio n. 2
0
 // GET: PRV_GRUPO
 public ActionResult Index()
 {
     //return View(db.PRV_GRUPO.ToList());
     return(View(repGrupo.GetAll(g => g.PRV_NOME_GRUPO).ToList()));
 }