public static async Task <PreAuthDomain> GetMatchedDomain(string email) { var domain = email.Split('@')[1]; var res = await PreAuthDomain.GetDomainByName(domain); return(res); }
public static async Task <PreAuthDomain> GetMatchedDomain(string email) { var d = email.Split('@'); PreAuthDomain res = null; if (d.Length == 2) { var domain = d[1]; res = await PreAuthDomain.GetDomainByName(domain); } return(res); }