Carrotware.CMS.Core.ContentPage.ApplyTemplate C# (CSharp) Метод

ApplyTemplate() публичный Метод

public ApplyTemplate ( ) : void
Результат void
        public void ApplyTemplate()
        {
            using (CarrotCMSDataContext _db = CarrotCMSDataContext.Create()) {
                carrot_Content c = CompiledQueries.cqGetLatestContentTbl(_db, this.SiteID, this.Root_ContentID);

                if (c != null) {
                    c.TemplateFile = this.TemplateFile;

                    _db.SubmitChanges();
                }
            }
        }