public int AddPatientNeonatalHistory(PatientNeonatalHistory n) { using (UnitOfWork unitofwork = new UnitOfWork(new GreencardContext())) { unitofwork.NeonatalRepository.Add(n); _result = unitofwork.Complete(); unitofwork.Dispose(); return(n.Id); } }
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); }