public ActionResult PatientCategory(string Fromdate, string Todate) { DoctorDashboardServiceRef.DoctorDashboardServiceClient serv = new DoctorDashboardServiceRef.DoctorDashboardServiceClient(); return(Json(serv.PatientCategory(Fromdate, Todate), JsonRequestBehavior.AllowGet)); }