コード例 #1
0
 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));
 }
コード例 #2
0
 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));
 }