less than 1 minute read

Demo Update: Report Hub Implementation

@page
@using UniversalReportCore.PageMetadata
@inject IPageMetaFactory PageMetaFactory

@model IndexModel
@{
    ViewData["Title"] = "Report Hub";
    var vm = new ReportHubViewModel() { Links = Model.Reports };
}

<h2>Universal Report Demos</h2>
<hr/>
<div class="container">
    <partial name="_ReportHubPartial" model="@vm" />
</div>
using Microsoft.AspNetCore.Mvc;
using UniversalReportCore.PageMetadata;
using UniversalReportCore.Ui;
using UniversalReportHeavyDemo.Data;

namespace UniversalReportHeavyDemo.Pages
{
    public class IndexModel : ReportHubPageModel
    {
        public IndexModel(IPageMetaFactory pageMetaFactory) : base(pageMetaFactory) { }

        public async Task<IActionResult> OnGetAsync()
        {
            return await ReportHubPageGetAsync();
        }
    }
}