public async Task <IEnumerable <ReferralModel> > GetReferrals(string clientId) { var result = await _affiliateApi.GetReferralsAsync(clientId); var output = _mapper.Map <IEnumerable <ReferralModel> >(result); return(output); }
/// <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()); }