public Role(int currentRoleId) { this.dataRole = new LTP.Accounts.Data.Role(); DataRow row = this.dataRole.Retrieve(currentRoleId); this.roleId = currentRoleId; if (row["Description"] != null) { this.description = (string) row["Description"]; } Permission permission = new Permission(); this.permissions = permission.GetPermissionList(currentRoleId); this.nopermissions = permission.GetNoPermissionList(currentRoleId); this.users = new LTP.Accounts.Data.User().GetUsersByRole(currentRoleId); }
public static DataSet GetAllPermissions() { Permission permission = new Permission(); return permission.GetPermissionList(); }