private async Task PopulateUrlRecordsFor <T>(IEnumerable <T> entities)
            where T : BaseEntity, ISlugSupported, new()
        {
            using (var scope = UrlService.CreateBatchScope())
            {
                foreach (var entity in entities)
                {
                    var ur = _data.CreateUrlRecordFor(entity);
                    if (ur != null)
                    {
                        scope.ApplySlugs(new ValidateSlugResult
                        {
                            Source      = entity,
                            Found       = ur,
                            Slug        = ur.Slug,
                            LanguageId  = 0,
                            FoundIsSelf = true,
                        });
                    }
                }

                await scope.CommitAsync();
            }
        }