Exemplo n.º 1
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var model = await Task.Run(() => _commonViewModelService.PrepareFavicon());

            if (String.IsNullOrEmpty(model.FaviconUrl))
            {
                return(Content(""));
            }

            return(View(model));
        }
Exemplo n.º 2
0
        public IViewComponentResult Invoke()
        {
            var model = _commonViewModelService.PrepareFavicon();

            if (String.IsNullOrEmpty(model.FaviconUrl))
            {
                return(Content(""));
            }

            return(View(model));
        }