Пример #1
0
 public List <DeliveryRule> BuildDeliveryRules()
 {
     return(Region.Select((t, i) => new DeliveryRule()
     {
         Region = t,
         First = First[i],
         FirstFee = FirstFee[i],
         Additional = Additional[i],
         AdditionalFee = AdditionalFee[i],
         CreateTime = CreateTime.ConvertToTimeStamp(),
         UpdateTime = UpdateTime.ConvertToTimeStamp(),
         WxappId = WxappId,
         DeliveryId = DeliveryId
     }).ToList());
 }
Пример #2
0
        public List <GoodsImage> BuildGoodsImages()
        {
            List <GoodsImage> list = null;

            if (ImageIds != null && ImageIds.Any())
            {
                list = new List <GoodsImage>();
                foreach (var id in ImageIds)
                {
                    list.Add(new GoodsImage()
                    {
                        ImageId    = id,
                        GoodsId    = GoodsId,
                        CreateTime = CreateTime.ConvertToTimeStamp(),
                        UpdateTime = UpdateTime.ConvertToTimeStamp(),
                        WxappId    = WxappId
                    });
                }
            }
            return(list);
        }