public IException Update(T entity) { IException exception = new ExceptionResult(); try { _repository.Update(entity); } catch (Exception e) { exception.SetException(e); } return(exception); }
public IException Delete(object key) { IException exception = new ExceptionResult(); try { _repository.Delete(key); } catch (Exception e) { exception.SetException(e); } return(exception); }