public async Task <IdentityResult> CreateAsync(ApplicationRole role, CancellationToken cancellationToken) { cancellationToken.ThrowIfCancellationRequested(); role.ID = await roleRepository.Create(role); return(IdentityResult.Success); }