Example #1
0
 public ClothesMainTransfer(IClothesBase clothes, IEnumerable <ClothesImageTransfer> images,
                            GenderTransfer gender, ClothesTypeTransfer clothesType,
                            IEnumerable <ColorTransfer> colors, IEnumerable <SizeGroupMainTransfer> sizeGroups)
     : this(clothes.Id, clothes.Name, clothes.Description, clothes.Price, images.ToList(),
            gender, clothesType, colors.ToList(), sizeGroups.ToList())
 {
 }
Example #2
0
 public ClothesEntity(IClothesBase clothes, IEnumerable <ClothesImageEntity> images,
                      IEnumerable <ClothesColorCompositeEntity> clothesColorComposites,
                      IEnumerable <ClothesSizeGroupCompositeEntity> clothesSizeGroupComposites)
     : this(clothes.Id, clothes.Name, clothes.Description, clothes.Price, clothes.GenderType, clothes.ClothesTypeName,
            images, null, null, clothesColorComposites, clothesSizeGroupComposites)
 {
 }
Example #3
0
 /// <summary>
 /// Получить сущность одежды
 /// </summary>
 private static ClothesEntity GetClothesEntity(IClothesBase clothes, IEnumerable <ClothesImageEntity>?clothesImages,
                                               GenderEntity?gender, ClothesTypeEntity?clothesType,
                                               IEnumerable <ClothesColorCompositeEntity>?clothesColorComposites,
                                               IEnumerable <ClothesSizeGroupCompositeEntity>?clothesSizeGroupComposites) =>
Example #4
0
 public ClothesEntity(IClothesBase clothes)
     : this(clothes.Id, clothes.Name, clothes.Description, clothes.Price, clothes.GenderType, clothes.ClothesTypeName,
            null, null, null, null, null)
 {
 }
Example #5
0
 /// <summary>
 /// Функция получения одежды
 /// </summary>
 private static IResultValue <ClothesFunc> GetClothesFunc(IClothesBase clothes) =>
 new ResultValue <ClothesFunc>(
     (colors, sizeGroups) => new ClothesDetailDomain(clothes, colors, sizeGroups));
 public ClothesDetailDomain(IClothesBase clothes,
                            IEnumerable <IColorDomain> colors, IEnumerable <ISizeGroupMainDomain> sizeGroups)
     : this(clothes.Id, clothes.Name, clothes.Description, clothes.Price,
            clothes.GenderType, clothes.ClothesTypeName, colors, sizeGroups)
 {
 }
Example #7
0
 /// <summary>
 /// Функция получения информации об одежде
 /// </summary>
 private static IResultValue <ClothesFunc> GetClothesFunc(IClothesBase clothes) =>
 new ResultValue <ClothesFunc>(
     (images, gender, clothesType, colors, sizes) => new ClothesMainDomain(clothes, images, gender, clothesType, colors, sizes));
Example #8
0
 public ClothesDomain(IClothesBase clothes)
     : this(clothes.Id, clothes.Name, clothes.Description, clothes.Price, clothes.GenderType, clothes.ClothesTypeName)
 {
 }
Example #9
0
 public ClothesDetailTransfer(IClothesBase clothes,
                              IEnumerable <ColorTransfer> colors, IEnumerable <SizeGroupMainTransfer> sizeGroups)
     : this(clothes.Id, clothes.Name, clothes.Description, clothes.Price,
            clothes.GenderType, clothes.ClothesTypeName, colors.ToList(), sizeGroups.ToList())
 {
 }
 public ClothesMainDomain(IClothesBase clothes, IEnumerable <IClothesImageDomain> images,
                          IGenderDomain gender, IClothesTypeDomain clothesType,
                          IEnumerable <IColorDomain> colors, IEnumerable <ISizeGroupMainDomain> sizeGroups)
     : this(clothes.Id, clothes.Name, clothes.Description, clothes.Price, images, gender, clothesType, colors, sizeGroups)
 {
 }