MaxJsonLength json request length.cs
public ActionResult GetAllPatientNames()
{
ICollection<Patients> listPatients = _patientUIP.GetAllPatientNames();
return new JsonResult() { Data = listPatients, JsonRequestBehavior = JsonRequestBehavior.AllowGet, MaxJsonLength = Int32.MaxValue };
}