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);
        }
Ejemplo n.º 2
0
 public static ProductTierPriceDto ToModel(this TierPrice entity)
 {
     return(entity.MapTo <TierPrice, ProductTierPriceDto>());
 }
 public static TierPriceDto ToDto(this TierPrice tierPrice)
 {
     return(tierPrice.MapTo <TierPrice, TierPriceDto>());
 }