Exemple #1
0
        public virtual BOBusinessEntityContact MapEFToBO(
            BusinessEntityContact ef)
        {
            var bo = new BOBusinessEntityContact();

            bo.SetProperties(
                ef.BusinessEntityID,
                ef.ContactTypeID,
                ef.ModifiedDate,
                ef.PersonID,
                ef.Rowguid);
            return(bo);
        }
        public virtual BOBusinessEntityContact MapModelToBO(
            int businessEntityID,
            ApiBusinessEntityContactRequestModel model
            )
        {
            BOBusinessEntityContact boBusinessEntityContact = new BOBusinessEntityContact();

            boBusinessEntityContact.SetProperties(
                businessEntityID,
                model.ContactTypeID,
                model.ModifiedDate,
                model.PersonID,
                model.Rowguid);
            return(boBusinessEntityContact);
        }