attribute decorator to require email format of string c# code example
Example: attribute decorator to require email format of string c#
using System.ComponentModel.DataAnnotations;
[EmailAddress(ErrorMessage = "Invalid Email Address")]
public string Email { get; set; }