Exemple #1
0
        public async Task <IEnumerable <ReferralModel> > GetReferrals(string clientId)
        {
            var result = await _affiliateApi.GetReferralsAsync(clientId);

            var output = _mapper.Map <IEnumerable <ReferralModel> >(result);

            return(output);
        }
Exemple #2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='clientId'>
 /// </param>
 public static IList <ReferralModel> GetReferrals(this IAffiliateAPI operations, string clientId = default(string))
 {
     return(operations.GetReferralsAsync(clientId).GetAwaiter().GetResult());
 }