public async Task <ActionResult <IEnumerable <Passenger> > > Get() { IEnumerable <Passenger> passengers = await _passengerRepository.GetAllPassengers(); return(Ok(passengers)); }
public IEnumerable <Passenger> GetAllPassengers() { IEnumerable <Passenger> passengers = _passengerRepository.GetAllPassengers(); return(passengers); }
public List <PassengerViewModel> GetAllPassengers() { return(_PassengerRepository.GetAllPassengers()); }
public ActionResult <IEnumerable <Passenger> > Get() { return(Ok(_repository.GetAllPassengers())); }