public virtual ApiBusinessEntityContactResponseModel MapBOToModel(
            BOBusinessEntityContact boBusinessEntityContact)
        {
            var model = new ApiBusinessEntityContactResponseModel();

            model.SetProperties(boBusinessEntityContact.BusinessEntityID, boBusinessEntityContact.ContactTypeID, boBusinessEntityContact.ModifiedDate, boBusinessEntityContact.PersonID, boBusinessEntityContact.Rowguid);

            return(model);
        }
Beispiel #2
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);
        }
Beispiel #3
0
        public virtual BusinessEntityContact MapBOToEF(
            BOBusinessEntityContact bo)
        {
            BusinessEntityContact efBusinessEntityContact = new BusinessEntityContact();

            efBusinessEntityContact.SetProperties(
                bo.BusinessEntityID,
                bo.ContactTypeID,
                bo.ModifiedDate,
                bo.PersonID,
                bo.Rowguid);
            return(efBusinessEntityContact);
        }
        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);
        }