public ActionResult AddNextOfKin(Common.NextOfKin nok, Common.Person personNOK, string txtStreetNOK, string txtPropertyNOK, Guid?localityNOK, Guid?streetNOK) { BusinessLayer.PatientsBL patient = new BusinessLayer.PatientsBL(); try { //nok.PatientId_fk = Int32.Parse(PatientIds); patient.RegisterPerson(personNOK, txtStreetNOK, txtPropertyNOK, localityNOK, streetNOK); nok.Personfk = personNOK.PersonID; patient.AddNextOfKin(nok); } catch (Exception ex) { throw ex; } return(Json(null, JsonRequestBehavior.AllowGet)); }