public int updateUnderstandingHIV(UnderstandingHIV UH) { using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext())) { unitOfWork.AdherenceHIVInfectionRepository.Update(UH); result = unitOfWork.Complete(); unitOfWork.Dispose(); return(result); } }
public int AddUnderstandingHIV(UnderstandingHIV UH) { using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext())) { unitOfWork.AdherenceHIVInfectionRepository.Add(UH); unitOfWork.Complete(); unitOfWork.Dispose(); return(UH.Id); } }
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); }