internal static PageTemplate Create(int parentId, Site site) => new PageTemplate { SiteId = parentId, Site = site, MaxNumOfFormatStoredVersions = 100, SendNocacheHeaders = true, EnableViewstate = true, Charset = PageTemplateRepository.GetCharsetByName("utf-8").Subj, Locale = PageTemplateRepository.GetLocaleByName("Russian").Id };
private static void SetDalProperties(Page bizObject, PageDAL dataObject) { SetDalProxyCache(bizObject, dataObject); dataObject.Codepage = PageTemplateRepository.GetCharsetByName(bizObject.Charset).Codepage; if (!bizObject.PageTemplate.SiteIsDotNet) { dataObject.CustomClass = null; dataObject.EnableViewstate = false; } if (!bizObject.ProxyCache && !bizObject.BrowserCaching) { dataObject.CacheHours = 0; } }