Added shared api feature

This commit is contained in:
Khwezi Mngoma
2026-06-03 00:20:46 +02:00
parent 763d24f11f
commit 4df903e456
6 changed files with 152 additions and 4 deletions
@@ -7,25 +7,25 @@ public sealed class EmailEnquiryModel
[Required]
[MinLength(2)]
[MaxLength(255)]
[Display(Name = "Full Name")]
[System.ComponentModel.DataAnnotations.Display(Name = "Full Name")]
public string? FullName { get; set; }
[Required]
[EmailAddress]
[MinLength(5)]
[MaxLength(255)]
[Display(Name = "Email Address")]
[System.ComponentModel.DataAnnotations.Display(Name = "Email Address")]
public string? EmailAddress { get; set; }
[Required]
[MinLength(2)]
[MaxLength(255)]
[Display(Name = "Subject")]
[System.ComponentModel.DataAnnotations.Display(Name = "Subject")]
public string? EmailSubject { get; set; }
[Required]
[MinLength(2)]
[MaxLength(2000)]
[Display(Name = "Message")]
[System.ComponentModel.DataAnnotations.Display(Name = "Message")]
public string? Message { get; set; }
}