1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| <WebMethod()> _
Public Function Resultats(ByVal RegId As Integer) As List(Of TData)
Return mList(RegId)
End Function
Private Function mList(ByVal RegId As Integer) As List(Of TData)
Dim tdat As TData
Dim ListTdata As New List(Of TData)
Dim x As Integer
For x = 1 To 2
tdat = New TData With { _
.RegionId = CStr(RegId) & " - region_" & CStr(x), _
.Nom = "Patrick_ " & CStr(x) _
}
ListTdata.Add(tdat)
Next
Return ListTdata
End Function
End Class
Public Class TData
Public RegionId As String
Public Nom As String
End Class |