Ejemplo n.º 1
0
        public ActionResult SeriesBinding([Bind] ChartSeriesBindingDemoOptions options)
        {
            string category = string.IsNullOrEmpty(options.Category) ? ChartSeriesBindingDemoOptions.DefaultCategory : options.Category;

            ViewData[ChartDemoHelper.OptionsKey] = options;
            return(DemoView("SeriesBinding", NorthwindDataProvider.GetProducts(category)));
        }
 public ActionResult SeriesBinding() {
     ChartSeriesBindingDemoOptions options = new ChartSeriesBindingDemoOptions();
     string category = string.IsNullOrEmpty(options.Category) ? ChartSeriesBindingDemoOptions.DefaultCategory : options.Category;
     ViewData[ChartDemoHelper.OptionsKey] = options;
     return DemoView("SeriesBinding", NorthwindDataProvider.GetProducts(category));
 }