Example #1
0
        public virtual BOPersonPhone MapEFToBO(
            PersonPhone ef)
        {
            var bo = new BOPersonPhone();

            bo.SetProperties(
                ef.BusinessEntityID,
                ef.ModifiedDate,
                ef.PhoneNumber,
                ef.PhoneNumberTypeID);
            return(bo);
        }
        public virtual BOPersonPhone MapModelToBO(
            int businessEntityID,
            ApiPersonPhoneRequestModel model
            )
        {
            BOPersonPhone boPersonPhone = new BOPersonPhone();

            boPersonPhone.SetProperties(
                businessEntityID,
                model.ModifiedDate,
                model.PhoneNumber,
                model.PhoneNumberTypeID);
            return(boPersonPhone);
        }