Exemple #1
0
        public async Task <IdentityResult> CreateAsync(UserRole role, CancellationToken cancellationToken)
        {
            db.Add(role);

            await db.SaveChangesAsync(cancellationToken);

            return(await Task.FromResult(IdentityResult.Success));
        }