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

            await db.SaveChangesAsync();
        }
 public async Task ReplaceClaimAsync([FromBody] ReplaceClaimDto ClaimInfo)
 {
     await _UserStore.ReplaceClaimAsync(ClaimInfo.User, ClaimInfo.OldClaim, ClaimInfo.NewClaim);
 }
Beispiel #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();
        }