public IActionResult GetFromLastName([FromBody] IdentifyPassengerRequest request) { var passenger = _repository.GetPassengerByLastName(request.LastName); if (passenger == null) { return(NotFound(request.LastName)); } return(Ok(passenger)); }