private Task <UEditorViewModel> GetMorePicViewModelAsync(UEditorViewModel viewModel) { if (viewModel == null) { viewModel = new UEditorViewModel(); } return(Task.FromResult(viewModel)); }
public async Task <IViewComponentResult> InvokeAsync(UEditorViewModel viewModel = null) { viewModel = await GetMorePicViewModelAsync(viewModel); return(View(viewModel)); }