Esempio n. 1
0
        public async Task <IViewComponentResult> InvokeAsync(string title)
        {
            PageHeaderData.Title = title;
            var profileUrlOption = await _blogConfig.GetProfilePicUrl();

            if (!profileUrlOption.Any())
            {
                PageHeaderData.ProfileUrl = string.Empty;
            }
            else
            {
                PageHeaderData.ProfileUrl = profileUrlOption.Single();
            }
            return(View(PageHeaderData));
        }