Example #1
0
        public async Task <IActionResult> Index()
        {
            if (User.Identity.IsAuthenticated)
            {
                var profile = await _graphService.GetUserProfile(User);

                return(View(new UserModel {
                    Name = profile
                }));
            }

            return(View());
        }