public int UpdatePatientArvHistory(PatientArvHistory patientArtUseHistory) { using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext())) { unitOfWork.PatientArvHistoryRepository.Update(patientArtUseHistory); Result = unitOfWork.Complete(); unitOfWork.Dispose(); return(Result); } }
public int AddPatientArtUseHistory(int id, int patientId, int patientMasterVisitId, string treatmentType, string purpose, string regimen, DateTime dateLastUsed, int userId) { var patientArtUseHistoryInsert = new PatientArvHistory() { PatientId = patientId, PatientMasterVisitId = patientMasterVisitId, TreatmentType = treatmentType, Purpose = purpose, Regimen = regimen, DateLastUsed = dateLastUsed, CreatedBy = userId }; return(_patientArtUseHistoryManager.AddPatientArvHistory(patientArtUseHistoryInsert)); }