Beispiel #1
0
 internal async Task <TrainEntity> GetById(int trainId)
 {
     return(await context.Set <TrainEntity>().FirstOrDefaultAsync(p => p.Id == trainId));
 }
Beispiel #2
0
 internal async Task <PassengerEntity> GetById(int passengerId)
 {
     return(await context.Set <PassengerEntity>().FirstOrDefaultAsync(p => p.Id == passengerId));
 }