public ActionResult AdminIndex() { CategoryAdminIndexModel catModel = new CategoryAdminIndexModel(); catModel.Cities = new tCategoryModelCustom { IDCategoryType = (int)Enums.enmCategoryTypes.City, InnerCategories = _categoryRepository.GetListByIDCategoryType((int)Enums.enmCategoryTypes.City) }; catModel.ForumCategories = new tCategoryModelCustom { IDCategoryType = (int)Enums.enmCategoryTypes.ForumCategory, InnerCategories = _categoryRepository.GetListByIDCategoryType((int)Enums.enmCategoryTypes.ForumCategory) }; catModel.DealCategories = new tCategoryModelCustom { IDCategoryType = (int)Enums.enmCategoryTypes.DealCategory, InnerCategories = _categoryRepository.GetListByIDCategoryType((int)Enums.enmCategoryTypes.DealCategory) }; catModel.PartnerCategories = new tCategoryModelCustom { IDCategoryType = (int)Enums.enmCategoryTypes.PartnersCategory, InnerCategories = _categoryRepository.GetListByIDCategoryType((int)Enums.enmCategoryTypes.PartnersCategory) }; catModel.UserGrades = new tCategoryModelCustom { IDCategoryType = (int)Enums.enmCategoryTypes.UserGrade, InnerCategories = _categoryRepository.GetListByIDCategoryType((int)Enums.enmCategoryTypes.UserGrade) }; catModel.ContentCategories = new tCategoryModelCustom { IDCategoryType = (int)Enums.enmCategoryTypes.Content, InnerCategories = _categoryRepository.GetListByIDCategoryType((int)Enums.enmCategoryTypes.Content) }; return View(catModel); }
public ActionResult AdminIndex() { CategoryAdminIndexModel catModel = new CategoryAdminIndexModel(); catModel.Cities = new tCategoryModelCustom { IDCategoryType = (int)Enums.enmCategoryTypes.City, InnerCategories = _categoryRepository.GetListByIDCategoryType((int)Enums.enmCategoryTypes.City) }; catModel.ForumCategories = new tCategoryModelCustom { IDCategoryType = (int)Enums.enmCategoryTypes.ForumCategory, InnerCategories = _categoryRepository.GetListByIDCategoryType((int)Enums.enmCategoryTypes.ForumCategory) }; catModel.DealCategories = new tCategoryModelCustom { IDCategoryType = (int)Enums.enmCategoryTypes.DealCategory, InnerCategories = _categoryRepository.GetListByIDCategoryType((int)Enums.enmCategoryTypes.DealCategory) }; catModel.PartnerCategories = new tCategoryModelCustom { IDCategoryType = (int)Enums.enmCategoryTypes.PartnersCategory, InnerCategories = _categoryRepository.GetListByIDCategoryType((int)Enums.enmCategoryTypes.PartnersCategory) }; catModel.UserGrades = new tCategoryModelCustom { IDCategoryType = (int)Enums.enmCategoryTypes.UserGrade, InnerCategories = _categoryRepository.GetListByIDCategoryType((int)Enums.enmCategoryTypes.UserGrade) }; catModel.ContentCategories = new tCategoryModelCustom { IDCategoryType = (int)Enums.enmCategoryTypes.Content, InnerCategories = _categoryRepository.GetListByIDCategoryType((int)Enums.enmCategoryTypes.Content) }; return(View(catModel)); }