Ejemplo n.º 1
0
 public int recordTannersStaging(TannersStaging R)
 {
     using (UnitOfWork unitofwork = new UnitOfWork(new GreencardContext()))
     {
         unitofwork.RecordTannersStagingRepository.Add(R);
         _result = unitofwork.Complete();
         unitofwork.Dispose();
         return(R.Id);
     }
 }
Ejemplo n.º 2
0
 public int updateRecordTannersStaging(TannersStaging TS)
 {
     using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext()))
     {
         unitOfWork.RecordTannersStagingRepository.Update(TS);
         _result = unitOfWork.Complete();
         unitOfWork.Dispose();
         return(_result);
     }
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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);
        }