private bool SaveSiteContents(out string errorMessage) { try { var siteTemplatePath = PathUtility.GetSiteTemplatesPath(TbSiteTemplateDir.Text); var siteContentDirectoryPath = PathUtility.GetSiteTemplateMetadataPath(siteTemplatePath, DirectoryUtils.SiteTemplates.SiteContent); var isSaveContents = TranslateUtils.ToBool(RblIsSaveContents.SelectedValue); var isSaveAllChannels = TranslateUtils.ToBool(RblIsSaveAllChannels.SelectedValue); var channelIdList = TranslateUtils.StringCollectionToIntList(Request.Form["ChannelIdCollection"]); _exportObject.ExportSiteContent(siteContentDirectoryPath, isSaveContents, isSaveAllChannels, channelIdList); errorMessage = ""; return(true); } catch (Exception e) { errorMessage = e.Message; return(false); } }