summaryrefslogtreecommitdiff
path: root/Forms
diff options
context:
space:
mode:
Diffstat (limited to 'Forms')
-rw-r--r--Forms/PrizeDTO.cs8
-rw-r--r--Forms/PrizeForm.cs1
2 files changed, 9 insertions, 0 deletions
diff --git a/Forms/PrizeDTO.cs b/Forms/PrizeDTO.cs
new file mode 100644
index 0000000..6741567
--- /dev/null
+++ b/Forms/PrizeDTO.cs
@@ -0,0 +1,8 @@
+namespace BackendPIA.Forms {
+ public class PrizeDTO {
+ public long Id { get; set; }
+ public string Name { get; set; }
+ public int Tier { get; set; }
+ public string Category { get; set; }
+ }
+} \ No newline at end of file
diff --git a/Forms/PrizeForm.cs b/Forms/PrizeForm.cs
index bc955f8..42074ad 100644
--- a/Forms/PrizeForm.cs
+++ b/Forms/PrizeForm.cs
@@ -7,6 +7,7 @@ namespace BackendPIA.Forms {
[Required]
[ForeignKey("RaffleId")]
[IsNotClosed]
+ [MaximumWinners]
public long RaffleId { get; set; }
[Required]
public string? Name { get; set; }