Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections.Generic;
- using Shop.Model;
- namespace Shop
- {
- class Shop
- {
- public string Name { get; set; }
- public string WorkTime { get; set; }
- List<Buyer> Buyers { get; set; } = new List<Buyer>();
- List<CatalogItem> CatalogItems { get; set; } = new List<CatalogItem>();
- }
- }
- namespace Shop.Model
- {
- class CatalogItem
- {
- public string Title { get; set; }
- public string Model { get; set; }
- public float Cost { get; set; }
- public int Count { get; set; }
- }
- }
- using System;
- using System.Collections.Generic;
- namespace Shop.Model
- {
- class Order
- {
- public List<CatalogItem> CatalogItems { get; set; } = new List<CatalogItem>();
- public Buyer Buyer { get; set; } = new Buyer();
- public DateTime DateOfSale { get; set; }
- public bool Paid { get; set; }
- }
- }
- namespace Shop.Model
- {
- class Buyer
- {
- public string FirstName { get; set; }
- public string LastName { get; set; }
- public string PhoneNumber { get; set; }
- public bool BlackList { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement