public int addPsychosocialCircumstances(int patientId, int patientMasterVisitId, int createdBy, string livingWith, string aware, int supportSystem, string supportSystemNotes, int relationshipChanges, string relationshipChangesNotes, int bothered, string botheredNotes, int treatedDifferently, string treatedDifferentlyNotes, int interferenceStigma, string interferenceStigmaNotes, int stoppedMedication, string stoppedMedicationNotes) { PsychosocialCircumstances PS = new PsychosocialCircumstances() { PatientId = patientId, PatientMasterVisitId = patientMasterVisitId, LivingWith = livingWith, Aware = aware, SupportSystem = supportSystem, SupportSystemNotes = supportSystemNotes, RelationshipChanges = relationshipChanges, RelationshipChangesNotes = relationshipChangesNotes, Bothered = bothered, BotheredNotes = botheredNotes, TreatedDifferently = treatedDifferently, TreatedDifferentlyNotes = treatedDifferentlyNotes, InterferenceStigma = interferenceStigma, StoppedMedication = stoppedMedication, StoppedMedicationNotes = stoppedMedicationNotes }; Result = _adherence.AddPsychosocialCircumstances(PS); return(Result); }
public int AddPsychosocialCircumstances(PsychosocialCircumstances PC) { using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext())) { unitOfWork.AdherencePsychosocialRepository.Add(PC); unitOfWork.Complete(); unitOfWork.Dispose(); return(PC.Id); } }
public int updatePsychosocialCircumstances(PsychosocialCircumstances PC) { using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext())) { unitOfWork.AdherencePsychosocialRepository.Update(PC); result = unitOfWork.Complete(); unitOfWork.Dispose(); return(result); } }