public int updateSocialHistory(PatientSocialHistory SH) { ISocialHistoryRepository socialHistoryRepository = new SocialHistoryRepository(); socialHistoryRepository.updateSocialHistory(SH); return(SH.Id); }
public List <PatientSocialHistory> getSocialHistory(int personId, int patientMasterVisitId) { ISocialHistoryRepository socialHistoryRepository = new SocialHistoryRepository(); var socialHistoryList = socialHistoryRepository.GetAll().Where(x => x.PatientId == personId && x.PatientMasterVisitId == patientMasterVisitId).OrderBy(x => x.Id); return(socialHistoryList.ToList()); }