summaryrefslogtreecommitdiff
path: root/Models/Figure.cs
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2023-06-03 07:41:46 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2023-06-03 07:41:46 +0300
commit3bade8859bcd938b85c39ab16eaa0dcf8e01535f (patch)
tree9157e3f27d8007206c12d5ec0cf5f2936295c0e7 /Models/Figure.cs
parent81c1fc0c14253457c3c4fc24735e787ace1db70b (diff)
Mass refactoring
Diffstat (limited to 'Models/Figure.cs')
-rw-r--r--Models/Figure.cs19
1 files changed, 13 insertions, 6 deletions
diff --git a/Models/Figure.cs b/Models/Figure.cs
index f63d842..8bbc591 100644
--- a/Models/Figure.cs
+++ b/Models/Figure.cs
@@ -1,9 +1,16 @@
namespace MyDarling.Models
{
- public class Figure
- {
- public int Id { get; set; }
- public string Description { get; set; } = string.Empty;
- public string FilePath { get; set; } = string.Empty;
- }
+ public class Figure
+ {
+ public string Id { get; set; }
+ public string Description { get; set; } = string.Empty;
+ public string ProductId { get; set; }
+
+ public Figure(string description, string productId)
+ {
+ Id = Guid.NewGuid().ToString();
+ Description = description;
+ ProductId = productId;
+ }
+ }
} \ No newline at end of file