Ejemplo n.º 1
0
 // GET: Blocos
 public ActionResult Index()
 {
     ViewBag.CondominioId = new SelectList(genericDALcondominio.FindAll().OrderBy(c => c.NomeCondominio), "CondominioId", "NomeCondominio");
     return(View(genericDAL.FindAll().OrderBy(b => b.NumBloco)));
 }
Ejemplo n.º 2
0
 // GET: Apartamentos
 public ActionResult Index()
 {
     ViewBag.BlocoId        = new SelectList(genericDALbloco.FindAll().OrderBy(b => b.NumBloco), "BlocoId", "NumBloco");
     ViewBag.ProprietarioId = new SelectList(genericDALproprietario.FindAll().OrderBy(p => p.Nome), "ProprietarioId", "Nome");
     return(View(genericDAL.FindAll().OrderBy(a => a.NumApto)));
 }
Ejemplo n.º 3
0
 public ActionResult Index()
 {
     return(View(genericDAL.FindAll()));
 }