Exemplo n.º 1
0
        /// <summary>
        /// Получить уточненные данные одежды
        /// </summary>
        public async Task <IResultCollection <IClothesDetailDomain> > GetClothesDetails(GenderType genderType, string clothesType) =>
        await new List <string>
        {
            genderType.ToString(), clothesType
        }

        .
        Map(parameters => RestRequest.GetRequest(ControllerName, ClothesRoutes.DETAIL_ROUTE, parameters)).
        MapAsync(request => RestHttpClient.GetCollectionAsync <ClothesDetailTransfer>(request)).
        ResultCollectionBindOkTaskAsync(transfers => _clothesDetailTransferConverter.FromTransfers(transfers));
Exemplo n.º 2
0
 /// <summary>
 /// Получить изображения одежды
 /// </summary>
 public async Task <IResultCollection <IClothesImageDomain> > GetImages(int clothesId) =>
 await RestRequest.GetRequest(clothesId, ControllerName, ClothesRoutes.IMAGES_ROUTE).
 MapAsync(request => RestHttpClient.GetCollectionAsync <ClothesImageTransfer>(request)).
 ResultCollectionBindOkTaskAsync(transfers => _clothesImageTransferConverter.FromTransfers(transfers));