public PatientOI UpdatePatientOI(PatientOI patientOI) { using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext())) { unitOfWork.PatientOIRepository.Update(patientOI); unitOfWork.Complete(); unitOfWork.Dispose(); return(patientOI); } }
public PatientOI addPatientOI(PatientOI patientoi) { using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext())) { unitOfWork.PatientOIRepository.Add(patientoi); unitOfWork.Complete(); unitOfWork.Dispose(); return(patientoi); } }
public PatientOI UpdatePatientOI(PatientOI patientOI) { try { return(_mgr.UpdatePatientOI(patientOI)); } catch (Exception e) { throw new Exception(e.Message); } }
public PatientOI addPatientOI(int patientId, int patientMasterVisitId, int OI, int User, DateTime?current) { try { PatientOI patientOI = new PatientOI() { PatientId = patientId, PatientMasterVisitId = patientMasterVisitId, OIId = OI, Current = current, DeleteFlag = false, CreateDate = DateTime.Now, CreatedBy = User }; return(_mgr.addPatientOI(patientOI)); } catch (Exception e) { throw new Exception(e.Message); } }