// GET: DataTable public ActionResult Index() { CreateExcelSheet.CreateExcelSheetWithFunctions(); DataTable dt = DataTableForGrid.dt; var jsonString = JsonConvert.SerializeObject(dt); return(Json(jsonString, JsonRequestBehavior.AllowGet)); }
// GET: Excel public bool Index() { CreateExcelSheet.CreateExcelSheetWithFunctions(); CreateExcelSheet.CreateExcelSheetForDatatble(); return(true); }