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 static TradingPostCategoryEntity Convert(ServersideTradingPostCategoryEntity model) { var dto = new TradingPostCategoryEntityDto(model); return(dto.GetTesttargetTradingPostCategoryEntity()); }