namespace AdamS.StoreTemp.Models.Common
{
    public static class StringExtensions
    {
        public static bool IsValidEmailAddress(this string emailAddress)
        {
            return !string.IsNullOrWhiteSpace(emailAddress);
        }
    }
}
using System.Text.RegularExpressions;

namespace AdamS.StoreTemp.Models.Common
{
    public static class StringExtensions
    {
        public static bool IsValidEmailAddress(this string emailAddress)
        {
            Regex regex = new Regex(@"^[\w-]+(?:\.[\w-]+)*@(?:[\w-]+\.)+[a-zA-Z]{2,7}$");
            Match match = regex.Match(emailAddress);
            return match.Success;

        }
        
    }
    
}
Update StringExtension to validate email
Update StringExtension to validate email
