public async Task UpdateAsync(Response Response) { try { await m_repository.UpdateAsync(new List <Response> { Response }); } 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 update a Response with the properties : {JsonConvert.SerializeObject(Response, Formatting.Indented)}"); throw; } }