protected override MultistepActionSettings CreateActionSettings(int dbId, int siteId) { var site = GetSite(siteId); if (site.IsDotNet) { return(new MultistepActionSettings { Stages = new[] { createFoldersCommand.GetStageSettings(), templatesCommand.GetStageSettings(), pagesCommand.GetStageSettings(), notificationCommand.GetStageSettings() } }); } return(new MultistepActionSettings { Stages = new[] { pagesCommand.GetStageSettings() } }); }
protected override MultistepActionSettings CreateActionSettings(int siteId, int templateId) { var site = SiteRepository.GetById(siteId); if (site == null) { throw new ApplicationException(string.Format(SiteStrings.SiteNotFound, siteId)); } if (site.IsDotNet) { return(new MultistepActionSettings { Stages = new[] { templateCommand.GetStageSettings(), pagesCommand.GetStageSettings(), notificationsCommand.GetStageSettings() } }); } return(new MultistepActionSettings { Stages = new[] { pagesCommand.GetStageSettings() } }); }