コード例 #1
0
        public static ProductModel.TierPriceModel ToModel(this TierPrice entity, IDateTimeHelper dateTimeHelper)
        {
            var tierprice = entity.MapTo <TierPrice, ProductModel.TierPriceModel>();

            tierprice.StartDateTime = entity.StartDateTimeUtc.ConvertToUserTime(dateTimeHelper);
            tierprice.EndDateTime   = entity.EndDateTimeUtc.ConvertToUserTime(dateTimeHelper);
            return(tierprice);
        }
コード例 #2
0
 public static ProductTierPriceDto ToModel(this TierPrice entity)
 {
     return(entity.MapTo <TierPrice, ProductTierPriceDto>());
 }
コード例 #3
0
 public static TierPriceDto ToDto(this TierPrice tierPrice)
 {
     return(tierPrice.MapTo <TierPrice, TierPriceDto>());
 }