public PatientSexualHistory UpdatePatientSexualHistory(PatientSexualHistory u) { using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext())) { unitOfWork.PatientSexualHistoryRepository.Update(u); Result = unitOfWork.Complete(); unitOfWork.Dispose(); return(u); } }
public PatientSexualHistory AddPatientSexualHistory(PatientSexualHistory a) { using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext())) { unitOfWork.PatientSexualHistoryRepository.Add(a); Result = unitOfWork.Complete(); unitOfWork.Dispose(); return(a); } }
public PatientSexualHistory UpdatePatientSexualHistory(PatientSexualHistory patientsexual) { return(_mgr.UpdatePatientSexualHistory(patientsexual)); }
public PatientSexualHistory AddPatientSexualHistory(PatientSexualHistory psh) { return(_mgr.AddPatientSexualHistory(psh)); }