Пример #1
0
        public virtual void AddRole(MongoIdentityRole role)
        {
            if (role == null)
            {
                throw new ArgumentNullException(nameof(role));
            }

            mongoRoles.Add(role);
        }
 public async Task AddRolesAsync(MongoIdentityRole entity)
 {
     await roles.InsertOneAsync(entity);
 }