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();
}
}
}