public virtual ApiPersonPhoneResponseModel MapBOToModel( BOPersonPhone boPersonPhone) { var model = new ApiPersonPhoneResponseModel(); model.SetProperties(boPersonPhone.BusinessEntityID, boPersonPhone.ModifiedDate, boPersonPhone.PhoneNumber, boPersonPhone.PhoneNumberTypeID); return(model); }
public virtual BOPersonPhone MapEFToBO( PersonPhone ef) { var bo = new BOPersonPhone(); bo.SetProperties( ef.BusinessEntityID, ef.ModifiedDate, ef.PhoneNumber, ef.PhoneNumberTypeID); return(bo); }
public virtual PersonPhone MapBOToEF( BOPersonPhone bo) { PersonPhone efPersonPhone = new PersonPhone(); efPersonPhone.SetProperties( bo.BusinessEntityID, bo.ModifiedDate, bo.PhoneNumber, bo.PhoneNumberTypeID); return(efPersonPhone); }
public virtual BOPersonPhone MapModelToBO( int businessEntityID, ApiPersonPhoneRequestModel model ) { BOPersonPhone boPersonPhone = new BOPersonPhone(); boPersonPhone.SetProperties( businessEntityID, model.ModifiedDate, model.PhoneNumber, model.PhoneNumberTypeID); return(boPersonPhone); }