public static DataTable GetUserInboxGroups(Guid userGuid) { Business.InboxGroup inboxGroupController = new Business.InboxGroup(); return(inboxGroupController.GetUserInboxGroups(userGuid)); }
//public static string GetUserInboxGroup(Guid userGuid, bool showNumberCount, bool showCheckBox) //{ // string tree = string.Empty; // Business.InboxGroup inboxGroupController = new Business.InboxGroup(); // DataTable dataTableInboxGroup = GetUserInboxGroups(userGuid); // DataTable dataTableRoot = GetRoot(); // if (dataTableRoot.Rows.Count == 0) // return string.Empty; // Guid rootGuid = Helper.GetGuid(dataTableRoot.Rows[0]["Guid"].ToString()); // tree += "<div class='myList'><ul class='browser filetree'>"; // tree += string.Format("<li><span class='root folder' guid='{0}'>{1}{2}</span><ul id='child'>", // Guid.Empty, // showCheckBox ? "<input onclick='checkBoxControlChecked(this);' type='checkbox'/>" : string.Empty, // dataTableRoot.Rows[0]["Title"].ToString()); // GenerateTree(dataTableInboxGroup, rootGuid, showNumberCount, showCheckBox, ref tree); // tree += "</ul></li></ul></div>"; // return tree; //} //public static DataTable GetRoot() //{ // Business.InboxGroup inboxGroupController=new Business.InboxGroup(); // return inboxGroupController.GetRoot(); //} public static DataTable GetUserInboxGroups(Guid userGuid, Guid parentNodeGuid, string name) { Business.InboxGroup inboxGroupController = new Business.InboxGroup(); return(inboxGroupController.GetUserInboxGroups(userGuid, parentNodeGuid, name)); }