public int UpdatePatientDisclosure(PatientDisclosure patientDisclosure) { using (UnitOfWork _unitOfWork = new UnitOfWork(new GreencardContext())) { _unitOfWork.PatientDisclosureRepository.Update(patientDisclosure); Result = _unitOfWork.Complete(); _unitOfWork.Dispose(); return(Result); } }
public int AddPatientDisclosure(int patientId, int patientMasterVisitId, string category, string disclosureStage, DateTime disclosureDate) { PatientDisclosure patientDisclosure = new PatientDisclosure { PatientId = patientId, PatientMasterVisitId = patientMasterVisitId, Category = category, DisclosureStage = disclosureStage, DisclosureDate = disclosureDate }; return(_retval = _mgr.AddPatientDisclosure(patientDisclosure)); }
public int UpdatePatientDisclosure(PatientDisclosure patientDisclosure) { return(_mgr.UpdatePatientDisclosure(patientDisclosure)); }