public static bool Delete(Guid guid) { Business.InboxGroup inboxGroupController = new Business.InboxGroup(); return(inboxGroupController.Delete(guid)); }
//private static void GenerateTree(DataTable dataTableInboxGroup, Guid root, bool showNumberCount, bool showCheckBox, ref string tree) //{ // DataView dataViewInboxGroup = dataTableInboxGroup.DefaultView; // dataViewInboxGroup.RowFilter = string.Format("ParentGuid='{0}'", root); // DataTable dataTableChildren = new DataTable(); // dataTableChildren = dataViewInboxGroup.ToTable(); // if (dataTableChildren.Rows.Count > 0) // tree += "<ul>"; // for (int childrenCounter = 0; childrenCounter < dataTableChildren.Rows.Count; childrenCounter++) // { // tree += string.Format("<li><span class='folder' guid='{0}' isActive='True'>{1}{2}{3}</span>", // dataTableChildren.Rows[childrenCounter]["Guid"].ToString(), // showCheckBox ? "<input id='Checkbox" + (childrenCounter + 1) + "' onclick='checkBoxControlChecked(this);' type='checkbox'/>" : string.Empty, // dataTableChildren.Rows[childrenCounter]["Title"].ToString(), // showNumberCount ? (" (" + dataTableChildren.Rows[childrenCounter]["CountInboxNumbers"].ToString() + ")") : string.Empty); // Guid childrenGuid = Helper.GetGuid(dataTableChildren.Rows[childrenCounter]["Guid"].ToString()); // GenerateTree(dataTableInboxGroup, childrenGuid, showNumberCount, showCheckBox, ref tree); // tree += "</li>"; // } // if (dataTableChildren.Rows.Count > 0) // tree += "</ul>"; //} //public static bool ChangeParent(Guid groupGuid, Guid parentGuid) //{ // Business.InboxGroup inboxGroupController = new Business.InboxGroup(); // if (parentGuid == Guid.Empty) // parentGuid = Helper.GetGuid(inboxGroupController.GetRoot().Rows[0]["Guid"]); // return inboxGroupController.UpdateParent(groupGuid, parentGuid); //} public static bool DeleteItemFromInboxGroups(Guid groupGuid) { Business.InboxGroup inboxGroupController = new Business.InboxGroup(); return(inboxGroupController.Delete(groupGuid)); }