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; }
public string GetUserGroupPermissions(int UserID) { DAPermissions da = new DAPermissions(); return da.GetUserGroupPermissions(UserID); }