diff options
Diffstat (limited to 'Forms/RaffleForm.cs')
-rw-r--r-- | Forms/RaffleForm.cs | 13 |
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 |