Beispiel #1
0
        public async Task AddClaimsAsync([FromBody] AddClaimDto claimInfo, [FromServices] WebStoreDB db)
        {
            await _userStore.AddClaimsAsync(claimInfo.User, claimInfo.Claims);

            await db.SaveChangesAsync();
        }
Beispiel #2
0
        public async Task AddClaimsAsync([FromBody] AddClaimDto ClaimInfo, [FromServices] WebStore_StudyDb db)
        {
            await userStore.AddClaimsAsync(ClaimInfo.User, ClaimInfo.Claims);

            await db.SaveChangesAsync();
        }