private int getNewReferralId() { int referralId = _referralRepository.GetAll().Count() > 0 ? _referralRepository.GetAll().Max(u => u.ReferralID) + 1 : 1; return(referralId); }
public IEnumerable <Referral> GetAll() { return(_referralRepository.GetAll()); }
public IEnumerable <Referral> GetAll(string business_id, Paging page) { return(_referralRepository.GetAll(business_id, page).Result); }