public BEGroups SelectByIDWithUserGroups(int GroupID) { DAGroups da = new DAGroups(); BEGroups ds = new BEGroups(); da.SelectByID(GroupID.ToString(), ds.tbl_Groups); return ds; }
public BEGroups SelectGroupPermissionsByGroupID(int GroupID) { DAGroups daGroups = new DAGroups(); DAGroupPermissions daGroupPerms = new DAGroupPermissions(); DAPermissions daPerms = new DAPermissions(); DAPermissionValues daPermValues = new DAPermissionValues(); BEGroups ds = new BEGroups(); //ds.EnforceConstraints = false; daGroups.SelectByID(GroupID.ToString(), ds.tbl_Groups); daPerms.SelectAll(ds.tbl_Permissions); daGroupPerms.SelectByID(GroupID.ToString(), ds.tbl_GroupPermissions); daPermValues.SelectAll(ds.tbl_PermissionValues); return ds; }