Beispiel #1
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            if (_signInManager.IsSignedIn(HttpContext.User))
            {
                var user = await _userManager.GetUserAsync(HttpContext.User);

                return(View("LoggedIn", user));
            }

            return(View(new LoginViewModel()));
        }