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();
Пример #2
0
 public async Task <IViewComponentResult> InvokeAsync(ComponentQueryModel input) => await _builder
 .For(input)
 .Error(() => Content("errored"))
 .Success(x => Content(input.Name))
 .Send();