Пример #1
0
 private async Task TryDeleteRakeItems(RakeService.RakeResult rakeRes)
 {
     try
     {
         await _repoServiceFactory.ItemRepoService.DeleteAsync(rakeRes.ItemIdsToUs);
     }
     catch (SqlException e)
     {
         _logService.Critical(e);
         throw new Exception("WE CAN'T DELET THE RAKE ITEMS WE TOOK!", e);
     }
 }
Пример #2
0
 private async Task TryChangeOwnerOnItemsToWinner(DatabaseModel.User winningUser, RakeService.RakeResult rakeRes)
 {
     try
     {
         await _repoServiceFactory.ItemRepoService.ChangeOwner(rakeRes.ItemIdsToWinner, winningUser);
     }
     catch (SqlException e)
     {
         _logService.Critical(e);
         throw new Exception("THE WINNER DID NOT GET THE ITEMS!", e);
     }
 }