public TradingPostCategoryEntityDto(ServersideTradingPostCategoryEntity model)
 {
     Id                   = model.Id;
     Created              = model.Created;
     Modified             = model.Modified;
     Name                 = model.Name;
     TradingPostListingss = model.TradingPostListingss == null ? null :TradingPostListingsTradingPostCategoriesDto.Convert(model.TradingPostListingss);
 }
 public ServersideTradingPostCategoryEntity GetServersideTradingPostCategoryEntity()
 {
     return(new ServersideTradingPostCategoryEntity
     {
         Id = Id,
         Created = Created,
         Modified = Modified,
         Name = Name,
         TradingPostListingss = TradingPostListingss == null ? null :TradingPostListingsTradingPostCategoriesDto.Convert(TradingPostListingss),
     });
 }
Esempio n. 3
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);
 }
Esempio n. 4
0
 public ServersideTradingPostListingEntity GetServersideTradingPostListingEntity()
 {
     return(new ServersideTradingPostListingEntity
     {
         Id = Id,
         Created = Created,
         Modified = Modified,
         Title = Title,
         Email = Email,
         Phone = Phone,
         AdditionalInfo = AdditionalInfo,
         AddressLine1 = AddressLine1,
         AddressLine2 = AddressLine2,
         PostalCode = PostalCode,
         ProductImageId = ProductImageId,
         Price = Price,
         PriceType = PriceType,
         FarmerId = FarmerId,
         TradingPostCategoriess = TradingPostCategoriess == null ? null :TradingPostListingsTradingPostCategoriesDto.Convert(TradingPostCategoriess),
     });
 }