Ejemplo n.º 1
0
 public int AddPatientNeonatalHistory(PatientNeonatalHistory n)
 {
     using (UnitOfWork unitofwork = new UnitOfWork(new GreencardContext()))
     {
         unitofwork.NeonatalRepository.Add(n);
         _result = unitofwork.Complete();
         unitofwork.Dispose();
         return(n.Id);
     }
 }
Ejemplo n.º 2
0
 public int updateNeonatalNotes(PatientNeonatalHistory nn)
 {
     using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext()))
     {
         unitOfWork.NeonatalRepository.Update(nn);
         result = unitOfWork.Complete();
         unitOfWork.Dispose();
         return result;
     }
 }
        public int updateNeonatalNotes(int PatientId, int PatientMasterVisitId, string notes, int recordNeonatalHistory, int notesid)
        {
            PatientNeonatalHistory nNotes = new PatientNeonatalHistory()
            {
                PatientId             = PatientId,
                PatientMasterVisitId  = PatientMasterVisitId,
                NeonatalHistoryNotes  = notes,
                RecordNeonatalHistory = recordNeonatalHistory,
                Id = notesid
            };
            int neonatalNotesResult = 0;

            neonatalNotesResult = neonatatalHtx.updateNeonatalNotes(nNotes);
            return(neonatalNotesResult);
        }