diff options
author | HombreLaser <sebastian-440@live.com> | 2022-11-24 16:50:03 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2022-11-24 16:50:03 -0600 |
commit | 1a504435120bf50f7a51ff1351abe8b7e398d6a2 (patch) | |
tree | 2b93e6911ede5456dea840208d8f6f12a125c197 /Forms | |
parent | bc6c7c8a8071eb5c5f8877247dde5dfab9f5e4f8 (diff) |
Añadido DTO POST para Prize
Diffstat (limited to 'Forms')
-rw-r--r-- | Forms/PrizeForm.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Forms/PrizeForm.cs b/Forms/PrizeForm.cs new file mode 100644 index 0000000..04f33a0 --- /dev/null +++ b/Forms/PrizeForm.cs @@ -0,0 +1,16 @@ +using System.ComponentModel.DataAnnotations; +using BackendPIA.Validations; + +namespace BackendPIA.Forms { + public class PrizeForm { + [Required] + public long RaffleId { get; set; } + [Required] + public string? Name { get; set; } + [Required] + [UniqueTier] + public int Tier { get; set; } + [Required] + public string? Category { get; set; } + } +}
\ No newline at end of file |