public ActionResult GetChartByChannel(string type) { ViewBag.ChartTitle = "Spain - Total Business by Channel - J&J Value Performance"; db = new Models.ChartsClassesDataContext(); db.CommandTimeout = 50000; List <Models.ChartByChannelModels> lst = GetChartsPc(GetChartByChannelData(type)); db.Dispose(); return(PartialView(BYCHANNEL, lst)); }
public ActionResult GetChartByType(string type) { ViewBag.ChartTitle = getChartTitle(type); db = new Models.ChartsClassesDataContext(); db.CommandTimeout = 50000; Models.ChartModel chart = GetChartByFranchiseData(type); List <Models.ChartByChannelModels> lst = chart.chart_ytd; db.Dispose(); ViewBag.ChartModel = lst; return(PartialView(GENERIC, chart)); }