public async Task UpdateNote(Note note) { var noteDto = NoteDtoConverter.NoteToDto(note, settings.DbTenantId); var json = JsonConvert.SerializeObject(noteDto); await httpClient.PutAsync($"{Uri}/{note.Id}", new JsonContent(json)); }
public async Task AddNote(Note note) { var noteDto = NoteDtoConverter.NoteToDto(note, settings.DbTenantId); var json = JsonConvert.SerializeObject(noteDto); var response = await httpClient.PostAsync(Uri, new JsonContent(json)); }