示例#1
0
        public virtual void DeleteScope(int scopeId)
        {
            var scope = m_scopeRepository.Load <ScopeEntity>(scopeId);

            try
            {
                m_scopeRepository.Delete(scope);
            }
            catch (ObjectNotFoundException)
            {
                throw new NoResultException <ScopeEntity>();
            }
        }