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