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