using SepehrTourApiSampleClient.Booking.Book.WinForms.InMemoryDatabase.BookedPnrs.Model;
using ApiModel = Sepehr.ApiGateway.Partners.Contracts.Tour.Booking.V3.Book.ResponseModel;

namespace SepehrTourApiSampleClient.Booking.Book.WinForms
{
    public class ApiResponseModelToRepositoryModelConvertor
    {
        public static BookedPnr Convert(
            ApiModel.Response response,
            string yourLocalInventoryPnr)
        {
            return new BookedPnr
            {
                Pnr = response.Pnr,
                YourLocalInventoryPnr = yourLocalInventoryPnr,
                //PassengerList = response.Passengers
                //    .Select(p => ConvertPassenger(p))
                //    .ToList()
            };
        }
    }
}
