public ActionResult Add()
        {
            var parentCatList = _categoryRepository.GetMany(x => x.ParentCategoryId == 0 && x.Status == (int)Status.Active).ToList();

            ViewBag.ParentCategoryList = parentCatList;
            var systemSettingsList = _systemSettingRepository.GetMany(x => x.Key == "Status").ToList();

            ViewBag.StatusList = systemSettingsList;
            return(View());
        }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public IEnumerable <SystemSetting> GetSystemSettings(Func <SystemSetting, bool> where)
 {
     if (@where == null)
     {
         throw new ArgumentException("where");
     }
     return(_roleRepository.GetMany(where));
 }