public ContactInformationModel MapData(ContactInformation ci) { ContactInformationModel cim = new ContactInformationModel(); if (ci != null) { cim.Id = ci.Id; cim.Tel = ci.Tel; cim.Email = ci.Email; cim.VacId = ci.Vacation.Id; } return cim; }
//private VacationMTEAdapter vacationAdapter = new VacationMTEAdapter(); public ContactInformation MapData(ContactInformationModel contactInformationModel, int p) { ContactInformation ci = new ContactInformation(); if (contactInformationModel != null) { ci.Id = contactInformationModel.Id; ci.Tel = contactInformationModel.Tel; ci.Email = contactInformationModel.Email; //ci.Vacation = vacationAdapter.getVacation(p); } return ci; }