Example #1
0
        public int updateReferrals(Referrals refs)
        {
            IAdherenceReferralsRepository referralsRepository = new AdherenceReferralsRepository();

            referralsRepository.updateReferrals(refs);
            return(refs.Id);
        }
Example #2
0
        public List <Referrals> getReferrals(int personId, int patientMasterVisitId)
        {
            IAdherenceReferralsRepository referralsRepository = new AdherenceReferralsRepository();
            var referralsList = referralsRepository.GetAll().Where(x => x.PatientId == personId && x.PatientMasterVisitId == patientMasterVisitId).OrderBy(x => x.Id);

            return(referralsList.ToList());
        }