Ejemplo n.º 1
0
 private void GetViewBags()
 {
     ViewBag.Locations     = new SelectList(_locationService.GetAll(), "Id", "Name");
     ViewBag.ProjectTypes  = new SelectList(_projectTypeService.GetAll(), "Id", "Name");
     ViewBag.PropertyTypes = new SelectList(_propertyTypeService.GetAll(), "Id", "Name");
     ViewBag.UnitTypeS     = new SelectList(_unitTypeService.GetAll(), "Id", "Name");
 }
 public ActionResult Index()
 {
     return(View(o.GetAll(true)));
 }