// 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))); }
// 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))); }
public ActionResult Index() { return(View(genericDAL.FindAll())); }