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();
 }
Esempio n. 2
0
 public ActionResult Index()
 {
     ViewBag.statuses = _controlStatusDao.GetAll().ToList();
     return(View());
 }