Пример #1
0
 public void LogicDelete(int id)
 {
     using (var unitOfWork = _unitOfWorkFactory.GetCurrentUnitOfWork())
     {
         var info = _articleRepository.Get(id);
         info.Status   = Enums.Status.Delete;
         info.EditUser = LoginUserSection.CurrentUser.LoginName;
         info.EditDate = _currentTimeProvider.CurrentTime();
         _articleRepository.Update(info);
         unitOfWork.Commit();
     }
 }