public async Task <IActionResult> ExchangeRouting() { bool result = User.HasClaim(x => x.Type == "ExpireChangeDate"); if (!result) { Claim ExpireDateExchange = new Claim("ExpireChangeDate", DateTime.Now.AddDays(30).Date.ToShortDateString(), ClaimValueTypes.String, "Internal"); await Usermanager.AddClaimAsync(CurrentUser, ExpireDateExchange); await SignInManager.SignOutAsync(); await SignInManager.SignInAsync(CurrentUser, true); } return(RedirectToAction("Exchange")); }