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()); }