using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.ComponentModel.DataAnnotations; using Sleis.Validation.Attribute; namespace Sleis.Models { public class SimpleEmailModel : BaseIdentityModel { [Required(ErrorMessage = Constants.RequiredErrorMessage), RegularExpression(Constants.EmailFormatRegEx, ErrorMessage = Constants.FormatErrorMessage)] public virtual string EmailAddress { get; set; } } }