コード例 #1
0
        public IException Update(T entity)
        {
            IException exception = new ExceptionResult();

            try
            {
                _repository.Update(entity);
            }
            catch (Exception e)
            {
                exception.SetException(e);
            }

            return(exception);
        }
コード例 #2
0
        public IException Delete(object key)
        {
            IException exception = new ExceptionResult();

            try
            {
                _repository.Delete(key);
            }
            catch (Exception e)
            {
                exception.SetException(e);
            }

            return(exception);
        }