public ActionResult get_Cancellation_Stats(string fdate, string tdate, string sertype, string station, string billtype, string chargeby, string reason, int recfilter) { PatientStatisticsDB _DB = new PatientStatisticsDB(); List <CANResultModel> _RE = _DB.get_Cancellation_Stats(fdate, tdate, sertype, station, billtype, chargeby, reason, recfilter); var serializer = new JavaScriptSerializer { MaxJsonLength = Int32.MaxValue }; var result = new ContentResult { Content = serializer.Serialize(new { Res = _RE ?? new List <CANResultModel>() }), ContentType = "application/json" }; return(result); }