Example #1
0
        public ActionResult AppFooter(Guid?id, Core.Entities.Application.Application application)
        {
            var authPrincipal = Octacom.Odiss.Core.Identity.Bootstrap.Odiss5.Mvc.AuthPrincipalHelper.GetAuthPrincipalFromClaims(HttpContext);
            var apConfig      = ConfigBase.Settings.Applications.SelectForLoggedUser(authPrincipal, id.Value);

            if (apConfig == null)
            {
                return(new HttpNotFoundResult());
            }

            var exceptionsApp = ConfigBase.Settings.Applications.FilterForLoggedUser(authPrincipal).FirstOrDefault(x => x.ID == Guid.Parse("32567291-0BED-E811-822B-D89EF34A256D"));

            ViewBag.AppData           = apConfig.GetAppDataJson();
            ViewBag.PageName          = OdissHelper.GetDocumentApplication(application.ID);
            ViewBag.ExceptionsPageUrl = exceptionsApp != null?Url.Action("Index", "App", new { exceptionsApp.ID }) : string.Empty;

            return(View());
        }
Example #2
0
 public ActionResult AppHeader(Core.Entities.Application.Application application)
 {
     return(View());
 }