Clothes.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Runtime.Serialization;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace exam.Model
  8. {
  9. [DataContract]
  10. public class Clothes
  11. {
  12. [DataMember]
  13. public string Title { get; set; }
  14. [DataMember]
  15. public string Brand { get; set; }
  16. [DataMember]
  17. public string Category { get; set; }
  18. [DataMember(Name = "PublishDate")]
  19. private string? stringPublishDate { get; set; }
  20. [IgnoreDataMember]
  21. public DateOnly PublishDate { get; set; }
  22. [DataMember]
  23. public int Price { get; set; }
  24. [DataMember]
  25. public double Rating { get; set; }
  26. [DataMember]
  27. public bool Existence { get; set; }
  28. [DataMember]
  29. public string Photo { get; set; }
  30. }
  31. public class ClothesCategory
  32. {
  33. public string Title { get; set; }
  34. }
  35. public class ClothesBrand
  36. {
  37. public string Title { get; set; }
  38. }
  39. public class ClothesPrice
  40. {
  41. public string Title { get; set; }
  42. public int PriceFrom { get; set; }
  43. public int PriceTo { get; set;}
  44. }
  45. }