Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. using System.Collections.Generic;
  2. using Shop.Model;
  3.  
  4. namespace Shop
  5. {
  6. class Shop
  7. {
  8. public string Name { get; set; }
  9. public string WorkTime { get; set; }
  10. List<Buyer> Buyers { get; set; } = new List<Buyer>();
  11. List<CatalogItem> CatalogItems { get; set; } = new List<CatalogItem>();
  12. }
  13. }
  14.  
  15. namespace Shop.Model
  16. {
  17. class CatalogItem
  18. {
  19. public string Title { get; set; }
  20. public string Model { get; set; }
  21. public float Cost { get; set; }
  22. public int Count { get; set; }
  23. }
  24. }
  25.  
  26. using System;
  27. using System.Collections.Generic;
  28.  
  29. namespace Shop.Model
  30. {
  31. class Order
  32. {
  33. public List<CatalogItem> CatalogItems { get; set; } = new List<CatalogItem>();
  34. public Buyer Buyer { get; set; } = new Buyer();
  35. public DateTime DateOfSale { get; set; }
  36. public bool Paid { get; set; }
  37. }
  38. }
  39.  
  40. namespace Shop.Model
  41. {
  42. class Buyer
  43. {
  44. public string FirstName { get; set; }
  45. public string LastName { get; set; }
  46. public string PhoneNumber { get; set; }
  47. public bool BlackList { get; set; }
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement