//Return Result Create KPI1 L2 Project Dataset public JsonResult GetKPI2L2(string Frequency) { KPI2L2dataset = GetChartData.GetKPI2L2Dataset(Frequency, "all"); var resul = Newtonsoft.Json.JsonConvert.SerializeObject(KPI2L2dataset.Tables[0]); return(Json(resul, JsonRequestBehavior.AllowGet)); }
public JsonResult GetKPI2L2Tables(int TableType, string direction) { //if (KPI2L2dataset == null) KPI2L2dataset = GetChartData.GetKPI2L2Dataset("Daily", direction); // KPI2L2dataset = GetChartData.GetKPI2L2Dataset("Daily", "All"); var resul = Newtonsoft.Json.JsonConvert.SerializeObject(KPI2L2dataset, Newtonsoft.Json.Formatting.Indented); // var resul = Newtonsoft.Json.JsonConvert.SerializeObject(KPI2L2dataset.Tables[Convert.ToInt16(TableType)]); return(Json(resul, JsonRequestBehavior.AllowGet)); }