コード例 #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>();
            }
        }
コード例 #2
0
 public bool DeleteScope(Scope s)
 {
     return(scopeRepo.Delete(s));
 }