Files
components/LiteCharms.Features/Email/Models/EmailEnquiryModel.cs
2026-06-03 00:20:46 +02:00

32 lines
842 B
C#

using System.ComponentModel.DataAnnotations;
namespace LiteCharms.Features.Email.Models;
public sealed class EmailEnquiryModel
{
[Required]
[MinLength(2)]
[MaxLength(255)]
[System.ComponentModel.DataAnnotations.Display(Name = "Full Name")]
public string? FullName { get; set; }
[Required]
[EmailAddress]
[MinLength(5)]
[MaxLength(255)]
[System.ComponentModel.DataAnnotations.Display(Name = "Email Address")]
public string? EmailAddress { get; set; }
[Required]
[MinLength(2)]
[MaxLength(255)]
[System.ComponentModel.DataAnnotations.Display(Name = "Subject")]
public string? EmailSubject { get; set; }
[Required]
[MinLength(2)]
[MaxLength(2000)]
[System.ComponentModel.DataAnnotations.Display(Name = "Message")]
public string? Message { get; set; }
}