コード例 #1
0
 private void InitViewBag()
 {
     ViewBag.environments = _environmentDao.GetAll().ToList();
     ViewBag.statuses     = _equipmentStatusDao.GetAll().ToList();
     ViewBag.categories   = _equipmentCategoryDao.GetAll().ToList();
     ViewBag.rooms        = _roomDao.GetAll().ToList();
 }
コード例 #2
0
 public EquipmentCategoryController()
 {
     _equipmentCategoryDao = new EquipmentCategoryDao();
     _categories           = _equipmentCategoryDao.GetAll().ToList();
 }