Exemple #1
0
        public async Task <IEnumerable <StatisticItemModel> > GetStats(string clientId)
        {
            var result = await _affiliateApi.GetStatsAsync(clientId);

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

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