/// <summary> /// Terminates the list element. /// </summary> /// <param name="strListName">Name of the STR list.</param> /// <param name="rowId">The row id.</param> /// <param name="strAuditListName">Name of the STR audit list.</param> protected void TerminateListElement(string listName, int rowId, string auditListName) { objCommonBLL = new CommonBLL(); string strSequenceField = string.Empty; if (string.Equals(ListName, CHAPTERLIST)) { strSequenceField = "Chapter_Sequence"; } else { strSequenceField = "Page_Sequence"; } if (string.Equals(ListName, CHAPTERLIST)) { objCommonBLL.UpdateListItemStatus(strSiteURL, ListName, rowId, AuditListName, AUDIT_ACTION_TERMINATE, STATUS_TERMINATED, strSequenceField); objCommonBLL.ListItemStatusUpdateForChapterPages(strSiteURL, CHAPTERPAGEMAPPINGLIST, rowId, STATUS_TERMINATED); } else if (string.Equals(ListName, MASTERPAGELIST) || string.Equals(ListName, CHAPTERPAGEMAPPINGLIST)) { objCommonBLL.UpdateListItemStatus(strSiteURL, ListName, rowId, AuditListName, AUDIT_ACTION_TERMINATE, STATUS_TERMINATED, strSequenceField); } else if (string.Equals(ListName, WELLBOOKLIST) || string.Equals(ListName, TEMPLATELIST)) { objCommonBLL.TerminateListValues(strSiteURL, listName, rowId, auditListName, false, true); } else if (string.Equals(ListName, USERLIST) || string.Equals(ListName, TEAMLIST) || string.Equals(ListName, TEAMSTAFFLIST)) { objCommonBLL.TerminateListValues(strSiteURL, listName, rowId, auditListName, false, false); } else { objCommonBLL.TerminateListValues(strSiteURL, listName, rowId, auditListName, true, true); } }