summaryrefslogtreecommitdiff
path: root/Forms/TicketForm.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Forms/TicketForm.cs')
-rw-r--r--Forms/TicketForm.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/Forms/TicketForm.cs b/Forms/TicketForm.cs
new file mode 100644
index 0000000..26e7302
--- /dev/null
+++ b/Forms/TicketForm.cs
@@ -0,0 +1,13 @@
+using System.ComponentModel.DataAnnotations;
+
+namespace BackendPIA.Forms {
+ public class TicketForm {
+ [Required]
+ [Range(1, 54, ErrorMessage = "Value for {0} must be between {1} and {2}.")]
+ public int Number { get; set; }
+ [Required]
+ public long UserAccountId { get; set; }
+ [Required]
+ public long RaffleId { get; set; }
+ }
+} \ No newline at end of file