public virtual ApiPhoneNumberTypeResponseModel MapBOToModel( BOPhoneNumberType boPhoneNumberType) { var model = new ApiPhoneNumberTypeResponseModel(); model.SetProperties(boPhoneNumberType.PhoneNumberTypeID, boPhoneNumberType.ModifiedDate, boPhoneNumberType.Name); return(model); }
public virtual BOPhoneNumberType MapEFToBO( PhoneNumberType ef) { var bo = new BOPhoneNumberType(); bo.SetProperties( ef.PhoneNumberTypeID, ef.ModifiedDate, ef.Name); return(bo); }
public virtual PhoneNumberType MapBOToEF( BOPhoneNumberType bo) { PhoneNumberType efPhoneNumberType = new PhoneNumberType(); efPhoneNumberType.SetProperties( bo.ModifiedDate, bo.Name, bo.PhoneNumberTypeID); return(efPhoneNumberType); }
public virtual BOPhoneNumberType MapModelToBO( int phoneNumberTypeID, ApiPhoneNumberTypeRequestModel model ) { BOPhoneNumberType boPhoneNumberType = new BOPhoneNumberType(); boPhoneNumberType.SetProperties( phoneNumberTypeID, model.ModifiedDate, model.Name); return(boPhoneNumberType); }