public virtual async Task <IActionResult> OnPostRenderViewAsync(string id) { var context = await SettingPageContributorManager.ConfigureAsync(); var view = context.Groups.FirstOrDefault(x => x.Id == id); if (view != null) { return(ViewComponent(view.ComponentType, view.Parameter)); } return(NoContent()); }
public virtual async Task <IActionResult> OnGetAsync() { SettingPageCreationContext = await SettingPageContributorManager.ConfigureAsync(); return(Page()); }