public static bool LoginErrorByUserId(string userAccount) { if (string.IsNullOrWhiteSpace(userAccount)) { throw new ArgumentNullException("userAccount"); } ISysUser factory = SysUserFactory.GetFactory(); return(factory.LoginErrorByUserId(userAccount)); }