Exemple #1
0
 public IViewComponentResult Invoke(string additionalCssClass)
 {
     ViewData[GlobalViewBagKeys.ECommerceService] = eCommerce;
     return(View(new CategoriesDropDownViewModel
     {
         Categories = eCommerce.GetAllRootCategories(),
         AdditionalCssClass = additionalCssClass
     }));
 }
Exemple #2
0
 public IViewComponentResult Invoke()
 {
     ViewData[GlobalViewBagKeys.ECommerceService] = eCommerce;
     return(View(eCommerce.GetAllRootCategories()));
 }
 public IViewComponentResult Invoke()
 {
     ViewBag.SelectedCategoryId = RouteData?.Values["categoryId"];
     return(View(eCommerce.GetAllRootCategories()));
 }