public void Delete(object id) { //LoggerFactory.CreateLog().Start(); var committed = 0; try { //if (session != null) // _repositoryRend.UnitOfWork.SetConnectionDb(session.ConnectionString); if (id == null) { throw new ArgumentNullException("id"); } // Domain Services? _repositoryRend.Delete(id); committed = _unitOfWorkAsync.SaveChanges(); } catch (Exception ex) { //LoggerFactory.CreateLog().Error(ex); } //LoggerFactory.CreateLog().Stop(); //_repositoryRend.Delete(id); //return committed > 0; return; }