3656223b5f
continuous-integration/drone/pr Build is passing
Added dates to product model Migrated database changes
32 lines
690 B
C#
32 lines
690 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace LiteCharms.Features.Email.Models;
|
|
|
|
public sealed class EmailEnquiryModel
|
|
{
|
|
[Required]
|
|
[MinLength(2)]
|
|
[MaxLength(255)]
|
|
[Display(Name = "Full Name")]
|
|
public string? FullName { get; set; }
|
|
|
|
[Required]
|
|
[EmailAddress]
|
|
[MinLength(5)]
|
|
[MaxLength(255)]
|
|
[Display(Name = "Email Address")]
|
|
public string? EmailAddress { get; set; }
|
|
|
|
[Required]
|
|
[MinLength(2)]
|
|
[MaxLength(255)]
|
|
[Display(Name = "Subject")]
|
|
public string? EmailSubject { get; set; }
|
|
|
|
[Required]
|
|
[MinLength(2)]
|
|
[MaxLength(2000)]
|
|
[Display(Name = "Message")]
|
|
public string? Message { get; set; }
|
|
}
|