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