Ejemplo n.º 1
0
 public void InitViewBag()
 {
     ViewBag.users        = _userDao.GetAll();
     ViewBag.equipments   = _equipmentDao.GetAll().ToList();
     ViewBag.environments = _environmentDao.GetAll().ToList();
     ViewBag.statuses     = _controlStatusDao.GetAll();
     ViewBag.categories   = _controlCategoryDao.GetAll();
 }
 public ActionResult Index()
 {
     ViewBag.categories = _controlCategoryDao.GetAll().ToList();
     return(View());
 }