public async Task <IViewComponentResult> InvokeAsync(ComponentQueryModel input) => await _builder .For(input) .Error(() => Content("errored")) .Success(async x => { await Task.FromResult(0); return(Content(input.Name)); }) .Send();
public async Task <IViewComponentResult> InvokeAsync(ComponentQueryModel input) => await _builder .For(input) .Error(() => Content("errored")) .Success(x => Content(input.Name)) .Send();