Ejemplo n.º 1
0
        public MultistepActionStepResult Step(int step)
        {
            var result    = new MultistepActionStepResult();
            var startFrom = step * ItemsPerStep + 1;
            var endOn     = startFrom - 1 + ItemsPerStep;

            result.ProcessedItemsCount = ContentService.CopyContents(SiteId, NewSiteId.Value, startFrom, endOn);
            ContentsCount = SiteRepository.GetSiteRealContentCount(SiteId);
            if (endOn >= ContentsCount)
            {
                ContentService.UpdateContents(SiteId, NewSiteId.Value);
            }

            return(result);
        }