diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-06-03 07:41:46 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-06-03 07:41:46 +0300 |
commit | 3bade8859bcd938b85c39ab16eaa0dcf8e01535f (patch) | |
tree | 9157e3f27d8007206c12d5ec0cf5f2936295c0e7 /Models/Product.cs | |
parent | 81c1fc0c14253457c3c4fc24735e787ace1db70b (diff) |
Mass refactoring
Diffstat (limited to 'Models/Product.cs')
-rw-r--r-- | Models/Product.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Models/Product.cs b/Models/Product.cs new file mode 100644 index 0000000..efb691c --- /dev/null +++ b/Models/Product.cs @@ -0,0 +1,15 @@ +namespace MyDarling.Models +{ + public class Product + { + public string Id { get; set; } + public string Name { get; set; } = string.Empty; + public List<Figure> Figures { get; set; } = new List<Figure>(); + public string Description { get; set; } = string.Empty; + public decimal Price { get; set; } = 1000M; + public Product() + { + Id = Guid.NewGuid().ToString(); + } + } +}
\ No newline at end of file |