aboutsummaryrefslogtreecommitdiffstats
path: root/src/Data/Payloads/CreateProductDto.cs
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-06-01 21:13:43 +0200
committerivarlovlie <git@ivarlovlie.no>2022-06-01 21:13:43 +0200
commit9383a2fb09ffb60cfe63683106945bd688affa59 (patch)
tree65b3f4b48841583e355887db5de5a16e7005fc87 /src/Data/Payloads/CreateProductDto.cs
downloadvinjesvingenhandel.no-9383a2fb09ffb60cfe63683106945bd688affa59.tar.xz
vinjesvingenhandel.no-9383a2fb09ffb60cfe63683106945bd688affa59.zip
feat: Initial commit after clean slate
Diffstat (limited to 'src/Data/Payloads/CreateProductDto.cs')
-rw-r--r--src/Data/Payloads/CreateProductDto.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Data/Payloads/CreateProductDto.cs b/src/Data/Payloads/CreateProductDto.cs
new file mode 100644
index 0000000..eada16e
--- /dev/null
+++ b/src/Data/Payloads/CreateProductDto.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using VSH.Data.Enums;
+
+namespace VSH.Data.Payloads;
+
+public class CreateProductDto
+{
+ public string Name { get; set; }
+ public string Description { get; set; }
+ public double Price { get; set; }
+ public PriceSuffix PriceSuffix { get; set; }
+ public Guid CategoryId { get; set; }
+ public List<TProductImage> Images { get; set; }
+ public int Count { get; set; }
+
+ public class TProductImage
+ {
+ public string FileName { get; set; }
+ public int Order { get; set; }
+ }
+} \ No newline at end of file