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