Exemplo n.º 1
0
        public async Task ReplaceClaimAsync([FromBody] ReplaceClaimDto claimInfo, [FromServices] WebStoreDB db)
        {
            await _userStore.ReplaceClaimAsync(claimInfo.User, claimInfo.Claim, claimInfo.NewClaim);

            await db.SaveChangesAsync();
        }
Exemplo n.º 2
0
 public async Task ReplaceClaimAsync([FromBody] ReplaceClaimDto ClaimInfo)
 {
     await _UserStore.ReplaceClaimAsync(ClaimInfo.User, ClaimInfo.OldClaim, ClaimInfo.NewClaim);
 }
Exemplo n.º 3
0
        public async Task ReplaceClaimAsync([FromBody] ReplaceClaimDto ClaimInfo, [FromServices] WebStore_StudyDb db)
        {
            await userStore.ReplaceClaimAsync(ClaimInfo.User, ClaimInfo.Claim, ClaimInfo.NewClaim);

            await db.SaveChangesAsync();
        }