attribute decorator to require email format of string csharp
Code Example - attribute decorator to require email format of string csharp
using System.ComponentModel.DataAnnotations;
[EmailAddress(ErrorMessage = "Invalid Email Address")]
public string Email { get; set; }