/// <summary> /// Updates the list entry. /// </summary> /// <param name="listEntry">The list entry.</param> /// <param name="listName">Name of the list.</param> /// <param name="pageType">Type of the page.</param> protected bool UpdateListEntry(DWBDataObjects.ListEntry listEntry, string listName, string auditListName, string pageType, string actionPerformed) { bool blnUpdateSuccess = false; strUserName = GetUserName(); switch (pageType) { case MASTERPAGE: { objMasterBLL = new MasterPageBLL(); listEntry.MasterPage.PageOwner = strUserName; objMasterBLL.UpdateListEntry(strParentSiteURL, listEntry, auditListName, listName, strUserName, actionPerformed); break; } case TEMPLATE: { objTemplateBLL = new TemplateDetailBLL(); objTemplateBLL.UpdateListEntry(strParentSiteURL, listEntry, auditListName, listName, strUserName, actionPerformed); break; } case TEMPLATEPAGEMAPPING: { objTemplateBLL = new TemplateDetailBLL(); objTemplateBLL.UpdateTemplatePageMapping(strParentSiteURL, listEntry, listName, auditListName, strUserName, actionPerformed, listEntry.TemplateDetails.RowId.ToString()); break; } case MASTERPAGETEMPLATEMAPPING: { objTemplateBLL = new TemplateDetailBLL(); objTemplateBLL.UpdateTemplateIDinMasterPageList(strParentSiteURL, listEntry, listName, auditListName, strUserName, actionPerformed); break; } case WELLBOOK: { objWellBookBLL = new WellBookBLL(); objWellBookBLL.UpdateListEntry(strParentSiteURL, listEntry, auditListName, listName, strUserName, actionPerformed); break; } case CHAPTER: { objChapterBLL = new ChapterBLL(); objChapterBLL.UpdateListEntry(strParentSiteURL, listEntry, auditListName, listName, strUserName, actionPerformed); break; } case CHANGEPAGEOWNER: { objWellBookBLL = new WellBookBLL(); objWellBookBLL.UpdatePageOwner(strParentSiteURL, listEntry, auditListName, listName, strUserName, actionPerformed); break; } case PAGECOMMENTS: { objWellBookBLL = new WellBookBLL(); blnUpdateSuccess = objWellBookBLL.UpdatePageComments(strParentSiteURL, listName, auditListName, listEntry, actionPerformed); break; } } return blnUpdateSuccess; }