Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Product
- {
- public int Id { get; protected set; }
- public string Name { get; protected set; }
- public string ArticleNumber { get; protected set; }
- public string Price { get; protected set; }
- public string Imageurl { get; protected set; }
- public string Description { get; protected set; }
- public string UrlSlug { get; protected set; }
- public Category Category { get; protected set; }
- public List<ProductCategory> Categories { get; protected set; } = new List<ProductCategory>();
- public Product(string articleNumber, string name, string price, string description, string imageurl, string urlSlug)
- {
- ArticleNumber = articleNumber;
- Name = name;
- Price = price;
- Description = description;
- Imageurl = imageurl;
- UrlSlug = urlSlug;
- }
- public Product(string name, string price, string imageurl, string articleNumber, string description, string urlSlug, Category category)
- : this(name, price, imageurl, articleNumber, description, urlSlug)
- {
- Category = category;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement