-
-
Save gdyrrahitis/373be340a8528d8e0b07add4a71b24ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public IActionResult Index() | |
{ | |
return View(); | |
} | |
[Authorize] | |
[Route("profile")] | |
public IActionResult Profile() | |
{ | |
var model = new ProfileViewModel | |
{ | |
Name = User.Identity.Name, | |
Claims = User.Claims | |
}; | |
return View(model); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment