Exemplo n.º 1
0
        public IContextOfApp AppOrNull(string nameOrPath)
        {
            if (string.IsNullOrWhiteSpace(nameOrPath))
            {
                return(null);
            }
            var id = AppIdResolver.GetAppIdFromPath(Site().Site.ZoneId, nameOrPath, false);

            return(id <= Eav.Constants.AppIdEmpty ? null : App(id));
        }
Exemplo n.º 2
0
 public IContextOfApp App(string nameOrPath) => App(AppIdResolver.GetAppIdFromPath(Site().Site.ZoneId, nameOrPath, true));