using System.ComponentModel.DataAnnotations; namespace BCards.Web.Areas.Support.Models; public class RatingSubmissionDto { [Required] [Range(1, 5, ErrorMessage = "A avaliação deve ser entre 1 e 5 estrelas")] public int RatingValue { get; set; } [StringLength(100, ErrorMessage = "O nome deve ter no máximo 100 caracteres")] public string? Name { get; set; } [EmailAddress(ErrorMessage = "Email inválido")] public string? Email { get; set; } [StringLength(500, ErrorMessage = "O comentário deve ter no máximo 500 caracteres")] public string? Comment { get; set; } }