public IActionResult GetReport(string id)
        {
            // Create the report object and load data from xml file
            var report = new StiReport();

            // Load report from MDZ document file
            // If not found - load from MRT template
            switch (id)
            {
            // Interactive Reports
            case "DrillDownSorting":

            // Parameters
            case "ParametersDetailedCategories":
            case "ParametersDetailedOrders":
            case "ParametersHighlightCondition":
            case "ParametersSelectingCountry":
            case "ParametersInvoice":

            // {Today} function is used
            case "MultiColumnListContainers":
                var data = new DataSet("Demo");
                data.ReadXml(StiNetCoreHelper.MapPath(this, "Data/Demo.xml"));
                report.Load(StiNetCoreHelper.MapPath(this, "ReportTemplates/" + id + ".mrt"));
                report.RegData(data);
                break;

            default:
                report.LoadPackedDocument(StiNetCoreHelper.MapPath(this, "ReportSnapshots/" + id + ".mdz"));
                break;
            }

            return(StiNetCoreViewerFx.GetReportResult(this, report));
        }
        public IActionResult GetReport(int?id)
        {
            // Create the report object
            StiReport report = new StiReport();

            // Load report
            switch (id)
            {
            // Load report snapshot
            case 1:
                report.LoadDocument(StiNetCoreHelper.MapPath(this, "Reports/SimpleList.mdc"));
                break;

            // Load report template
            case 2:
                report.Load(StiNetCoreHelper.MapPath(this, "Reports/TwoSimpleLists.mrt"));
                break;

            // Load report snapshot
            default:
                report.LoadDocument(StiNetCoreHelper.MapPath(this, "Reports/SimpleList.mdc"));
                break;
            }

            // Load data from XML file for report template
            if (!report.IsDocument)
            {
                DataSet data = new DataSet("Demo");
                data.ReadXml(StiNetCoreHelper.MapPath(this, "Reports/Data/Demo.xml"));

                report.RegData(data);
            }

            return(StiNetCoreViewerFx.GetReportResult(this, report));
        }