Guest User

Untitled

a guest
Feb 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.66 KB | None | 0 0
  1. Public Module SpoorwegController
  2.     Dim data As New SpoorwegDataLinqDataContext
  3.     Public Function getAllRitten() As List(Of Ritten)
  4.         Return (From s In data.Rittens Select s).ToList()
  5.     End Function
  6.  
  7.     Public Function getTreinTypeById(ByVal id As String) As Treinen
  8.         Dim trein As Treinen
  9.         trein = (From s In data.Treinens Where s.Id = id Select s).First
  10.         Return trein
  11.     End Function
  12.  
  13.     Public Function getStationNaamById(ByVal id As String) As Station
  14.         Dim station As Station
  15.         station = (From s In data.Stations Where s.Id = id Select s).First
  16.         Return station
  17.     End Function
  18.  
  19.  
  20. End Module
Add Comment
Please, Sign In to add comment