public virtual void DeleteScope(int scopeId) { var scope = m_scopeRepository.Load <ScopeEntity>(scopeId); try { m_scopeRepository.Delete(scope); } catch (ObjectNotFoundException) { throw new NoResultException <ScopeEntity>(); } }
public bool DeleteScope(Scope s) { return(scopeRepo.Delete(s)); }