public ActionResult YandexMarketSpecImport() { var model = new YandexMarketSpecImportModel(); model.AvailableCategories = _yandexMarketCategoryService.GetCategoriesForDDL(); model.ParserCategoryId = 0; return(View(model)); }
//[AdminAuthorize] //[ChildActionOnly] public ActionResult Configure() { var model = new YandexMarketParserModel(); model.AvailableParserCategories = _yandexMarketCategoryService.GetCategoriesForDDL(); model.AvailableShopCategories = _shopCategoryService.GetAllCategories() .Select(x => new SelectListItem() { Selected = false, Text = x.Name, Value = x.Id.ToString() }).ToList(); return(View(model)); }