public static bool SignIn(string userName, string password) { if (_provider == null) { throw new NullReferenceException("Security provider not set"); } return(_provider.SignIn(userName, password)); }