Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. public class Product
  2. {
  3. public int Id { get; protected set; }
  4. public string Name { get; protected set; }
  5. public string ArticleNumber { get; protected set; }
  6. public string Price { get; protected set; }
  7. public string Imageurl { get; protected set; }
  8. public string Description { get; protected set; }
  9. public string UrlSlug { get; protected set; }
  10. public Category Category { get; protected set; }
  11. public List<ProductCategory> Categories { get; protected set; } = new List<ProductCategory>();
  12.  
  13. public Product(string articleNumber, string name, string price, string description, string imageurl, string urlSlug)
  14. {
  15. ArticleNumber = articleNumber;
  16. Name = name;
  17. Price = price;
  18. Description = description;
  19. Imageurl = imageurl;
  20. UrlSlug = urlSlug;
  21. }
  22. public Product(string name, string price, string imageurl, string articleNumber, string description, string urlSlug, Category category)
  23. : this(name, price, imageurl, articleNumber, description, urlSlug)
  24. {
  25. Category = category;
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement