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