Пример #1
0
        public virtual void DeleteApiResource(int id)
        {
            var apiResource = m_apiResourceRepository.Load <ApiResourceEntity>(id);

            try
            {
                m_apiResourceRepository.Delete(apiResource);
            }
            catch (ObjectNotFoundException)
            {
                throw new NoResultException <ApiResourceEntity>();
            }
        }