public bool Remove(string key) { #region Contracts if (string.IsNullOrEmpty(key) == true) { throw new ArgumentNullException(); } #endregion // Require if (_repository.ContainsKey(key) == false) { return(false); } // Repository _repository.Remove(key); // Return return(true); }
public bool ContainsKey(string groupName) { #region Contracts if (string.IsNullOrEmpty(groupName) == true) { throw new ArgumentNullException(); } #endregion // Repository return(_repository.ContainsKey(groupName)); }