public virtual void Delete(T entity) { if (entity == null) { throw new ArgumentNullException("entity"); } _repository.Delete(entity); _unitOfWork.Commit(); }