diff options
author | HombreLaser <sebastian-440@live.com> | 2022-11-28 17:49:34 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2022-11-28 17:49:34 -0600 |
commit | 5fe81d9515d71dad1e37f7ee3262a44c52e2599e (patch) | |
tree | 3a366584c0b60c0e0e2bd7d53992094d1cf5fc50 /Forms | |
parent | 9149e64398e7b9f7b29bcf68db7eff2ce5f8169c (diff) |
Añadido validador de límite para premios
Diffstat (limited to 'Forms')
-rw-r--r-- | Forms/PrizeDTO.cs | 8 | ||||
-rw-r--r-- | Forms/PrizeForm.cs | 1 |
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; } |