Example #1
0
 // GET: /Authorization/Reports/ReportViewer
 public ActionResult ReportViewer()
 {
     return(View("Reports/ReportViewer",
                 new ReportNameModel()
     {
         ReportName =
             ReportStorageWithAccessRules.GetViewableReportDisplayNamesForCurrentUser().FirstOrDefault()
     }));
 }
Example #2
0
        // 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"));
            }
        }