From c0ee31f4a7dd89fad1d0e9c6802a4608e7f00118 Mon Sep 17 00:00:00 2001 From: cernont Date: Thu, 2 Oct 2025 15:00:58 +0200 Subject: [PATCH] Actualiser PyroFetes/Models/Sound.cs --- PyroFetes/Models/Sound.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PyroFetes/Models/Sound.cs b/PyroFetes/Models/Sound.cs index 4bde6bf..7ba2f64 100644 --- a/PyroFetes/Models/Sound.cs +++ b/PyroFetes/Models/Sound.cs @@ -9,19 +9,19 @@ public class Sound [Required, MaxLength(120)] public string Name { get; set; } = null!; - [MaxLength(60)] + [Required, MaxLength(60)] public string? Type { get; set; } - [MaxLength(120)] + [Required, MaxLength(120)] public string? Artist { get; set; } - [Range(0, int.MaxValue)] + [Required, Range(0, int.MaxValue)] public int? Duration { get; set; } - [MaxLength(40)] + [Required, MaxLength(40)] public string? Kind { get; set; } - [MaxLength(40)] + [Required, MaxLength(40)] public string? Format { get; set; } public DateTime? CreationDate { get; set; }