Esempio n. 1
0
        public IException Update(T entity)
        {
            IException exception = new ExceptionResult();

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

            return(exception);
        }
Esempio n. 2
0
        public IException Delete(object key)
        {
            IException exception = new ExceptionResult();

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

            return(exception);
        }