コード例 #1
0
        public async Task <IActionResult> GameList()
        {
            if (User.Identity.IsAuthenticated)
            {
                User user = await _userManager.FindByNameAsync(User.Identity.Name);

                User entity = _gameUserService.GetLibraryForUser(user.Id);
                return(View(entity));
            }
            else
            {
                return(Redirect("~/"));
            }
        }