예제 #1
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var model = await Task.Run(() => _commonViewModelService.PrepareFavicon());

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

            return(View(model));
        }
예제 #2
0
        public IViewComponentResult Invoke()
        {
            var model = _commonViewModelService.PrepareFavicon();

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

            return(View(model));
        }