/// <summary> /// The action for rendering the product list header view /// </summary> /// <returns>The navigation view.</returns> public ActionResult ProductBar() { var dataSourcePath = Item[CommerceTemplates.CommerceNavigationItem.Fields.CategoryDatasource.ToString()]; if (string.IsNullOrEmpty(dataSourcePath)) { return(View("ProductBar", null)); } var dataSource = Item.Database.GetItem(dataSourcePath); if (dataSource == null) { return(View("ProductBar", null)); } var viewModel = _navigationRepository.GetNavigationProductBar(dataSource, CurrentRendering); return(View("ProductBar", viewModel)); }