// GET: DataTable
        public ActionResult Index()
        {
            CreateExcelSheet.CreateExcelSheetWithFunctions();
            DataTable dt         = DataTableForGrid.dt;
            var       jsonString = JsonConvert.SerializeObject(dt);

            return(Json(jsonString, JsonRequestBehavior.AllowGet));
        }
Example #2
0
 // GET: Excel
 public bool Index()
 {
     CreateExcelSheet.CreateExcelSheetWithFunctions();
     CreateExcelSheet.CreateExcelSheetForDatatble();
     return(true);
 }