public int UpdatePatientDisclosure(PatientDisclosure patientDisclosure)
 {
     using (UnitOfWork _unitOfWork = new UnitOfWork(new GreencardContext()))
     {
         _unitOfWork.PatientDisclosureRepository.Update(patientDisclosure);
         Result = _unitOfWork.Complete();
         _unitOfWork.Dispose();
         return(Result);
     }
 }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
 public int UpdatePatientDisclosure(PatientDisclosure patientDisclosure)
 {
     return(_mgr.UpdatePatientDisclosure(patientDisclosure));
 }