public async Task <IActionResult> CreateTravelerAsync([FromBody] TravelerItem travelerItem) { Traveler traveler = _mapper.Map <Traveler>(travelerItem); try { await _travelerService.CreateAsync(traveler); } catch (Exception exception) { BadRequest(exception); } TravelerViewModel viewModel = await _travelerQueries.GetByIdAsync(traveler.Id); return(Ok(viewModel)); }