public void InitViewBag() { ViewBag.environments = _environmentDao.GetAll().ToList(); ViewBag.categories = _roomCategoryDao.GetAll().ToList(); }
public RoomCategoryController() { _roomCategoryDao = new RoomCategoryDao(); _categories = _roomCategoryDao.GetAll().ToList(); }