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()) { }
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) { }
/// <summary> /// Получить сущность одежды /// </summary> private static ClothesEntity GetClothesEntity(IClothesBase clothes, IEnumerable <ClothesImageEntity>?clothesImages, GenderEntity?gender, ClothesTypeEntity?clothesType, IEnumerable <ClothesColorCompositeEntity>?clothesColorComposites, IEnumerable <ClothesSizeGroupCompositeEntity>?clothesSizeGroupComposites) =>
public ClothesEntity(IClothesBase clothes) : this(clothes.Id, clothes.Name, clothes.Description, clothes.Price, clothes.GenderType, clothes.ClothesTypeName, null, null, null, null, null) { }
/// <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) { }
/// <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));
public ClothesDomain(IClothesBase clothes) : this(clothes.Id, clothes.Name, clothes.Description, clothes.Price, clothes.GenderType, clothes.ClothesTypeName) { }
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) { }