Created
October 19, 2017 05:58
-
-
Save HamidMosalla/4c2df090fad88718b8585e54e6f9d645 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 async Task<IActionResult> AddEmployeeClaim() | |
{ | |
var user = await _userManager.GetUserAsync(User); | |
var claim = new Claim("Employee", "Mosalla"); | |
var addClaimResult = await _userManager.AddClaimAsync(user, claim); | |
return View(addClaimResult); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment