public ActionResult AddIllnessesMedical(Common.IllnessesMedical im, string PatientIds) { BusinessLayer.PatientsBL patient = new BusinessLayer.PatientsBL(); try { im.PatientId_fk = Int32.Parse(PatientIds); patient.AddIllnessesMedical(im); } catch (Exception ex) { throw ex; } return(Json(null, JsonRequestBehavior.AllowGet)); }