summaryrefslogtreecommitdiff
path: root/Forms
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2022-11-21 16:34:39 -0600
committerHombreLaser <sebastian-440@live.com>2022-11-21 16:34:39 -0600
commitb3deb8c5d92dd616042ea9e265c197abe02f995c (patch)
tree235d1597fb1729ebbd0c898fada61e0a76b5a95e /Forms
parent3e67b71325f51c1a83a4cb7d78586690c4d89a0c (diff)
Añadido controlador de rifas
Diffstat (limited to 'Forms')
-rw-r--r--Forms/RaffleForm.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/Forms/RaffleForm.cs b/Forms/RaffleForm.cs
new file mode 100644
index 0000000..3046aed
--- /dev/null
+++ b/Forms/RaffleForm.cs
@@ -0,0 +1,13 @@
+using System.ComponentModel.DataAnnotations;
+using Microsoft.AspNetCore.Identity;
+
+namespace BackendPIA.Forms {
+ public class RaffleForm {
+ [Required]
+ [StringLength(128)]
+ public string? Name { get; set; }
+ [Required]
+ [Range(1, 54, ErrorMessage = "Value for {0} must be between {1} and {2}.")]
+ public int Winners { get; set; }
+ }
+} \ No newline at end of file