public async Task DeleteAsync(Guid id) { try { var Round = await SearchAsync(new Pagination(), new SimpleFilter <Round> { SearchTerm = id.ToString() }); await m_repository.DeleteAsync(Round.Item2.First()); } catch (ValidationException e) { m_logger.LogWarning(e, "A validation failed"); throw; } catch (Exception e) when(e.GetType() != typeof(ValidationException)) { m_logger.LogCritical(e, $"Unexpected Exception while trying to delete a Round for id : {id}"); throw; } }