public async Task <HttpResponseMessage> AddNoteAsync(Submission data, long contactId) { HubspotNote note = data.CreateNote(contactId); try { HttpClient client = _clientFactory.CreateClient(); var response = await client.PostAsJsonAsync(NOTE_ADD_URL + _options.APIkey, note); return(response); } catch (Exception ex) { _logger.LogError(ex.Message); return(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }