private async void TagDoubleClicked(object sender, MouseButtonEventArgs e) { var preItem = VisualUpwardSearch(e.OriginalSource as DependencyObject); AutoTag tag = preItem.DataContext as AutoTag; await LoadContainer(tag?.Item); }
public async Task <bool> UpdateAutoTagAsync(string id, AutoTag body, CancellationToken cancellationToken = default) { var response = await GetAutoTagsUrl() .AppendPathSegment(id) .PutJsonAsync(body, cancellationToken) .ConfigureAwait(false); return(response.IsSuccessStatusCode); }
public async Task <EntityShortRepresentation> CreateAutoTagAsync(AutoTag body, CancellationToken cancellationToken = default) { var response = await GetAutoTagsUrl() .PostJsonAsync(body, cancellationToken) .ReceiveJsonWithErrorChecking <EntityShortRepresentation>() .ConfigureAwait(false); return(response); }