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; }
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; }
//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); }
public ContactInformationModel GetContactInformation(DataRow row) { var info = new ContactInformationModel(); info.Id = int.Parse(row["Id"].ToString()); info.HomePhone = row["HomePhone"].ToString(); info.WorkPhone = row["WorkPhone"].ToString(); info.MobilePhone = row["MobilePhone"].ToString(); info.Preferred = int.Parse(row["Preferred"].ToString()); info.State = row["State"].ToString(); info.StreetAddress = row["StreetAddress"].ToString(); info.Zip = row["Zip"].ToString(); info.BestTimeToContact = row["BestTimeToContact"].ToString(); info.City = row["City"].ToString(); info.Email = row["Email"].ToString(); return info; }