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); }
public async Task ReplaceClaimAsync([FromBody] ReplaceClaimDto ClaimInfo, [FromServices] WebStore_StudyDb db) { await userStore.ReplaceClaimAsync(ClaimInfo.User, ClaimInfo.Claim, ClaimInfo.NewClaim); await db.SaveChangesAsync(); }