public ActionResult Configure(string theme, int storeId) { if (!_themeRegistry.ThemeManifestExists(theme)) { return(RedirectToAction("List", new { storeId })); } var model = new ConfigureThemeModel { ThemeName = theme, StoreId = storeId, AvailableStores = Services.StoreService.GetAllStores().ToSelectListItems() }; ViewData["ConfigureThemeUrl"] = Url.Action("Configure", new { theme }); return(View(model)); }
public ActionResult Configure(string theme, int storeId) { if (!_services.Permissions.Authorize(StandardPermissionProvider.ManageThemes)) { return(AccessDeniedView()); } if (!_themeRegistry.ThemeManifestExists(theme)) { return(RedirectToAction("List", new { storeId = storeId })); } var model = new ConfigureThemeModel { ThemeName = theme, StoreId = storeId, AvailableStores = _storeService.GetAllStores().ToSelectListItems() }; ViewData["ConfigureThemeUrl"] = Url.Action("Configure", new { theme = theme }); return(View(model)); }