Пример #1
0
 public TradingPostListingEntityDto(ServersideTradingPostListingEntity model)
 {
     Id                     = model.Id;
     Created                = model.Created;
     Modified               = model.Modified;
     Title                  = model.Title;
     Email                  = model.Email;
     Phone                  = model.Phone;
     AdditionalInfo         = model.AdditionalInfo;
     AddressLine1           = model.AddressLine1;
     AddressLine2           = model.AddressLine2;
     PostalCode             = model.PostalCode;
     ProductImageId         = model.ProductImageId;
     Price                  = model.Price;
     PriceType              = model.PriceType;
     FarmerId               = model.FarmerId;
     TradingPostCategoriess = model.TradingPostCategoriess == null ? null :TradingPostListingsTradingPostCategoriesDto.Convert(model.TradingPostCategoriess);
 }
Пример #2
0
        public static TradingPostListingEntity Convert(ServersideTradingPostListingEntity model)
        {
            var dto = new TradingPostListingEntityDto(model);

            return(dto.GetTesttargetTradingPostListingEntity());
        }