public async Task <HttpResponseMessage> AddContactAsync(Submission data) { HubspotContact contact = data.CreateContact(_options.AssignedUser); try { HttpClient client = _clientFactory.CreateClient(); var response = await client.PostAsJsonAsync(CONTACT_ADD_URL + _options.APIkey, contact); return(response); } catch (Exception ex) { _logger.LogError(ex.Message); return(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }