123456789101112131415161718192021222324252627282930313233 |
- using System.Collections.Generic;
- namespace DataSources
- {
- public class Category
- {
- public string Name { get; }
- public string Description { get; }
- public List<Product> Products { get; }
- public Category(string name, string description)
- {
- Name = name;
- Description = description;
- Products = new List<Product>();
- }
- }
- public class Product
- {
- public string Name { get; }
- public decimal UnitPrice { get; }
- public Product(string name, decimal unitPrice)
- {
- Name = name;
- UnitPrice = unitPrice;
- }
- }
- }
|