using SepehrHotelApiSampleClient.Booking.Book.WinForms.InMemoryDatabase.BookedPnrs.Model;
using ApiModel = Sepehr.ApiGateway.Partners.Contracts.Hotel.Booking.V5.Book.ResponseModel;

namespace SepehrHotelApiSampleClient.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()
            };
        }
    }
}
