public int UpdatePatientTBRx(PatientTBRx p) { using (UnitOfWork _unitOfWork = new UnitOfWork(new GreencardContext())) { _unitOfWork.PatientTBRxRepository.Update(p); _result = _unitOfWork.Complete(); _unitOfWork.Dispose(); return(_result); } }
public int AddPatientTBRx(PatientTBRx p) { PatientTBRx patientTBRx = new PatientTBRx() { PatientId = p.PatientId, PatientMasterVisitId = p.PatientMasterVisitId, TBRxStartDate = p.TBRxStartDate, TBRxEndDate = p.TBRxEndDate, RegimenId = p.RegimenId, CreatedBy = p.CreatedBy }; return(_patientTBRx.AddPatientTBRx(patientTBRx)); }