コード例 #1
0
    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());
    }
コード例 #2
0
    public virtual async Task <IActionResult> OnGetAsync()
    {
        SettingPageCreationContext = await SettingPageContributorManager.ConfigureAsync();

        return(Page());
    }