Esempio n. 1
0
 public int updateUnderstandingHIV(UnderstandingHIV UH)
 {
     using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext()))
     {
         unitOfWork.AdherenceHIVInfectionRepository.Update(UH);
         result = unitOfWork.Complete();
         unitOfWork.Dispose();
         return(result);
     }
 }
Esempio n. 2
0
 public int AddUnderstandingHIV(UnderstandingHIV UH)
 {
     using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext()))
     {
         unitOfWork.AdherenceHIVInfectionRepository.Add(UH);
         unitOfWork.Complete();
         unitOfWork.Dispose();
         return(UH.Id);
     }
 }
Esempio n. 3
0
        public int addUnderstandingHIV(int patientId, int patientMasterVisitId, int createdBy, int understandHIVEffects, int understandART, int understandSideEffects, int understandAdherenceBenefits,
                                       int understandConsequences)
        {
            UnderstandingHIV UH = new UnderstandingHIV()
            {
                PatientId                   = patientId,
                PatientMasterVisitId        = patientMasterVisitId,
                UnderstandHIVEffects        = understandHIVEffects,
                UnderstandART               = understandART,
                UnderstandSideEffect        = understandSideEffects,
                UnderstandAdherenceBenefits = understandAdherenceBenefits,
                UnderstandConsequences      = understandConsequences
            };

            Result = _adherence.AddUnderstandingHIV(UH);
            return(Result);
        }