public ListingDTO CreateListingDTO(Listing listing) { return(new ListingDTO() { Id = listing.Id, ItemName = listing.ItemName, Quantity = listing.Quantity, Price = listing.Price, AuctionStartTime = listing.AuctionStartTime, AuctionEndTime = listing.AuctionEndTime, ImageUrl = listing.ImageUrl, DescriptionAbstract = listing.Description, // TODO: Abstract is not Full Description, see end of this class ProductCategory = new ProductCategoryDTO() { Id = listing.ProductCategory.Id, ProductCategoryName = listing.ProductCategory.ProductCategoryName }, Bids = bidRepo.GetAllBidsForListing(listing.Id).Select(b => new BidDTO() { Id = b.Id, BidAmount = b.BidAmount, User = CreateUserDTO(b.User) }).ToList(), User = new UserDTO() { Id = listing.User.Id, Username = listing.User.Username } }); }