//private VacationMTEAdapter vacationAdapter = new VacationMTEAdapter(); public Price MapData(PriceModel priceModel, int p) { Price price = new Price(); price.Id = priceModel.Id; price.BasePrice = priceModel.BasePrice; price.SingleStarPrice = priceModel.SingleStarPrice; price.DoubleStarPrice = priceModel.DoubleStarPrice; //price.Vacation = vacationAdapter.getVacation(p); return price; }
public PriceModel MapData(Price p) { PriceModel pm = new PriceModel(); if (p != null) { pm.Id = p.Id; pm.SingleStarPrice = p.SingleStarPrice; pm.BasePrice = p.BasePrice; pm.DoubleStarPrice = p.DoubleStarPrice; pm.VacId = p.Vacation.Id; } return pm; }