public IActionResult GetAllFlights() { var flights = service.GetAllFlightsInfo(); return(flights == null?NotFound("No departures found!") as IActionResult : Ok(mapper.Map <IEnumerable <FlightDTO> >(flights))); }
public IActionResult GetAllFlights() { var flights = service.GetAllFlightsInfo(); return(flights == null?NotFound("No departures found!") as IActionResult : Ok(flights)); }