private void Save(Models.Article record, bool isNew) { // add any code to update other fields/tables here record.DateAdded = DateTime.Now; record.Save(); // delete all keyword for this article and its related urls and documents. AutocompletePhrase.AddPhrase("Article", record.ID, record.MetaKeywords, true); // save subform or related checkboxes here eg record.Lines.Save(); //ifsubform: record.example.Save(); foreach (var articleDocument in record.ArticleDocuments) { BewebCore.ThirdParty.SearchTextExtractor.CheckAttachmentsForDocOrPDFText(articleDocument); } CheckLock(record); lockobj.UnLockTable(record.GetTableName(), record.ID); ArticleCache.Rebuild(); }