public MemberModel(int? id, GroupSelect select, string name, string sgprefix = "") { OrganizationId = id; if (Util2.CurrentGroups != null && @select == GroupSelect.Active) { Groups = Util2.CurrentGroups; GroupsMode = Util2.CurrentGroupsMode; } else // No Filter { Groups = new int[] {0}; GroupsMode = 0; } Select = select; Pager = new PagerModel2(Count); Pager.Direction = "asc"; Pager.Sort = "Name"; NameFilter = name; SgPrefix = sgprefix; }
public MemberModel(int?id, GroupSelect select, string name, string sgprefix = "") { OrganizationId = id; if (Util2.CurrentGroups != null && @select == GroupSelect.Active) { Groups = Util2.CurrentGroups; GroupsMode = Util2.CurrentGroupsMode; } else // No Filter { Groups = new int[] { 0 }; GroupsMode = 0; } Select = select; Pager = new PagerModel2(Count); Pager.Direction = "asc"; Pager.Sort = "Name"; NameFilter = name; SgPrefix = sgprefix; }
public string GroupActive(string group) { return(GroupSelect.Contains(group) ? "active" : ""); }