Blog.DAL.UstawieniaServices.existSettings C# (CSharp) Method

existSettings() public method

public existSettings ( string key ) : bool
key string
return bool
        public bool existSettings(string key)
        {
            #region walidacja
            /* wcześniej już to sprawdziłem przed wywołaniem - prywatna wieć nie wywoła się nigdzie indziej
             if (String.IsNullOrEmpty(key)) throw new ArgumentException("Klucz nie może być pusty", key);
             if (String.IsNullOrWhiteSpace(key)) throw new ArgumentException("Klucz nie może zawierać białych znaków", key);
             */
            #endregion

            return _ustawienia.existSettings(key);
        }