private void InitViewBag() { ViewBag.environments = _environmentDao.GetAll().ToList(); ViewBag.statuses = _equipmentStatusDao.GetAll().ToList(); ViewBag.categories = _equipmentCategoryDao.GetAll().ToList(); ViewBag.rooms = _roomDao.GetAll().ToList(); }
public EquipmentCategoryController() { _equipmentCategoryDao = new EquipmentCategoryDao(); _categories = _equipmentCategoryDao.GetAll().ToList(); }