public JsonResult GetGata() { try { using (tdb = new TrialsDBEntities()) { var myList = sa.GetSales(tdb); return(Json(myList, JsonRequestBehavior.AllowGet)); } } catch (Exception) { throw; } }
public JsonResult GetGata() { try { using (tdb = new TrialsDBEntities()) { var myList = sa.GetSales(tdb); //return Json(myList, JsonRequestBehavior.AllowGet); var jsonResult = Json(myList, JsonRequestBehavior.AllowGet); //jsonResult.MaxJsonLength = int.MaxValue; return(jsonResult); } } catch (Exception) { throw; } }