public JsonResult GetGata()
 {
     try
     {
         using (tdb = new TrialsDBEntities())
         {
             var myList = sa.GetSales(tdb);
             return(Json(myList, JsonRequestBehavior.AllowGet));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #2
0
        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;
            }
        }