示例#1
0
        public async Task <IdentityResult> CreateAsync(ApplicationRole role, CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();

            role.ID = await roleRepository.Create(role);

            return(IdentityResult.Success);
        }