public async Task DeleteAsync(Guid id) { try { var Response = await SearchAsync(new Pagination(), new SimpleFilter <Response> { SearchTerm = id.ToString() }); await m_repository.DeleteAsync(Response.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 Response for id : {id}"); throw; } }