public ActionResult get_ORRequestFTDProg(string bdate) { PatientStatisticsDB _DB = new PatientStatisticsDB(); ORDailyDashORAOrig _RE = _DB.get_ORRequestFTDProg(bdate); var serializer = new JavaScriptSerializer { MaxJsonLength = Int32.MaxValue }; var result = new ContentResult { Content = serializer.Serialize(new { Res = _RE ?? new ORDailyDashORAOrig() }), ContentType = "application/json" }; return(result); }