// GET: /Authorization/Reports/ReportViewer public ActionResult ReportViewer() { return(View("Reports/ReportViewer", new ReportNameModel() { ReportName = ReportStorageWithAccessRules.GetViewableReportDisplayNamesForCurrentUser().FirstOrDefault() })); }
// GET: /Authorization/Reports/ReportDesigner/<Report Url> public ActionResult ReportDesigner(string name) { var reportNames = ReportStorageWithAccessRules.GetEditableReportNamesForCurrentUser(); if (reportNames.Contains(name)) { return(View("Reports/ReportDesigner", new ReportNameModel() { ReportName = name })); } else { return(RedirectToAction("ReportViewer", "Authorization")); } }