public int recordTannersStaging(TannersStaging R) { using (UnitOfWork unitofwork = new UnitOfWork(new GreencardContext())) { unitofwork.RecordTannersStagingRepository.Add(R); _result = unitofwork.Complete(); unitofwork.Dispose(); return(R.Id); } }
public int updateRecordTannersStaging(TannersStaging TS) { using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext())) { unitOfWork.RecordTannersStagingRepository.Update(TS); _result = unitOfWork.Complete(); unitOfWork.Dispose(); return(_result); } }
public int recordTannersStaging(int patientId, int patientMasterVisitId, int createdBy, int recordTannersStaging) { TannersStaging tannersStaging = new TannersStaging() { PatientId = patientId, PatientMasterVisitId = patientMasterVisitId, CreatedBy = createdBy, RecordTannersStaging = recordTannersStaging }; int result = 0; result = _tannersStaging.recordTannersStaging(tannersStaging); return(result); }
public int updateRecordTannersStaging(int PatientId, int PatientMasterVisitId, int recordTannersStaging, int tannersId) { TannersStaging tnStg = new TannersStaging() { PatientId = PatientId, PatientMasterVisitId = PatientMasterVisitId, RecordTannersStaging = recordTannersStaging, Id = tannersId }; int tannersResult = 0; tannersResult = _tannersStaging.updateRecordTannersStaging(tnStg); return(tannersResult); }