示例#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));
        }
示例#2
0
 public IContextOfApp App(string nameOrPath) => App(AppIdResolver.GetAppIdFromPath(Site().Site.ZoneId, nameOrPath, true));