Пример #1
0
        protected async Task <TDestination> GetResponseAsync <TSource, TDestination>(Uri uri)
            where TSource : class
        {
            var result = await GetResponseAsync <TSource>(uri);

            return(AutoMapperService.Map <TSource, TDestination>(result));
        }
Пример #2
0
        protected async Task <TDestination> GetResponseAsync <TSource, TDestination>(RegionEnum?region,
                                                                                     string relativeUrl)
            where TSource : class
        {
            var result = await GetResponseAsync <TSource>(BuildUri(region, relativeUrl));

            return(AutoMapperService.Map <TSource, TDestination>(result));
        }