Ejemplo n.º 1
0
        internal void MutatePage()
        {
            var name  = Name;
            var index = 0;

            do
            {
                index++;
                Name = MutateHelper.MutateTitle(name, index);
            } while (PageRepository.NameExists(this));

            var fileName = FileName;

            index = 0;

            while (PageRepository.FileNameExists(this))
            {
                index++;
                FileName = MutateHelper.MutatePageFileName(FileName, index);
            }
        }