📅  最后修改于: 2022-03-11 14:49:24.006000             🧑  作者: Mango
public class ExampleViewComponent : ViewComponent {
public Task InvokeAsync() {
ExampleModel model = new ExampleModel(2);
// returns a finished task
return Task.FromResult(View(model));
}
}