public static void BuildTenantPermissions(BusinessDbContext context)
        {
            var tenants = GetHostTenants(context);

            foreach (var tenant in tenants)
            {
                PermissionBuilder.Build(context, tenant.Id);
            }
        }
        public static void RunSeed()
        {
            BusinessModelSeedDataManager.CheckMultiTenantData();

            using (var context = BusinessDbContext.Create())
            {
                context.DisableAllFilters();

                ResourceBuilder.Build(context);
                RoleBuilder.Build(context, null);
                PermissionBuilder.Build(context, null);
                UserBuilder.Build(context, null);
                UserRoleBuilder.Build(context, null);

                TenantBuilder.BuildTenantRoles(context);
                TenantBuilder.BuildTenantUserRoles(context);
                TenantBuilder.BuildTenantPermissions(context);

                context.EnableAllFilters();
            }
        }