public void DeleteScopeType(ScopeType scopeType)
        {
            //Argument Contract
            Requires.NotNull("scopeType", scopeType);
            Requires.PropertyNotNegative("scopeType", "ScopeTypeId", scopeType.ScopeTypeId);

            _DataService.DeleteScopeType(scopeType);

            //Refresh cached collection of types
            DataCache.RemoveCache(_CacheKey);
        }
        public void DeleteScopeType(ScopeType scopeType)
        {
            //Argument Contract
            Requires.NotNull("scopeType", scopeType);
            Requires.PropertyNotNegative("scopeType", "ScopeTypeId", scopeType.ScopeTypeId);

            _DataService.DeleteScopeType(scopeType);

            //Refresh cached collection of types
            DataCache.RemoveCache(_CacheKey);
        }
        public int AddScopeType(ScopeType scopeType)
        {
            //Argument Contract
            Requires.NotNull("scopeType", scopeType);
            Requires.PropertyNotNullOrEmpty("scopeType", "ScopeType", scopeType.Type);

            scopeType.ScopeTypeId = _DataService.AddScopeType(scopeType);

            //Refresh cached collection of types
            DataCache.RemoveCache(_CacheKey);

            return(scopeType.ScopeTypeId);
        }
        public int AddScopeType(ScopeType scopeType)
        {
            //Argument Contract
            Requires.NotNull("scopeType", scopeType);
            Requires.PropertyNotNullOrEmpty("scopeType", "ScopeType", scopeType.Type);

            scopeType.ScopeTypeId = _DataService.AddScopeType(scopeType);

            //Refresh cached collection of types
            DataCache.RemoveCache(_CacheKey);

            return scopeType.ScopeTypeId;
        }
 public void DeleteScopeType(ScopeType scopeType)
 {
     provider.ExecuteNonQuery("DeleteScopeType", scopeType.ScopeTypeId);
 }
 public int AddScopeType(ScopeType scopeType)
 {
     return provider.ExecuteScalar<int>("AddScopeType", scopeType.Type);
 }
 public void UpdateScopeType(ScopeType scopeType)
 {
     provider.ExecuteNonQuery("UpdateScopeType", scopeType.ScopeTypeId, scopeType.Type);
 }