public ActionResult DrillDownPartial(string category) { ViewData[ChartDemoHelper.CategoryKey] = category; if (string.IsNullOrEmpty(category)) { return(PartialView("DrillDownPartial", NorthwindDataProvider.GetCategoriesAverage())); } else { return(PartialView("DrillDownCategoryPartial", NorthwindDataProvider.GetProducts(category))); } }
public ActionResult DrillDown(string category) { object model; ViewData[ChartDemoHelper.CategoryKey] = category; if (string.IsNullOrEmpty(category)) { model = NorthwindDataProvider.GetCategoriesAverage(); } else { model = NorthwindDataProvider.GetProducts(category); } return(DemoView("DrillDown", model)); }