コード例 #1
0
        public virtual ApiPersonPhoneResponseModel MapBOToModel(
            BOPersonPhone boPersonPhone)
        {
            var model = new ApiPersonPhoneResponseModel();

            model.SetProperties(boPersonPhone.BusinessEntityID, boPersonPhone.ModifiedDate, boPersonPhone.PhoneNumber, boPersonPhone.PhoneNumberTypeID);

            return(model);
        }
コード例 #2
0
        public virtual BOPersonPhone MapEFToBO(
            PersonPhone ef)
        {
            var bo = new BOPersonPhone();

            bo.SetProperties(
                ef.BusinessEntityID,
                ef.ModifiedDate,
                ef.PhoneNumber,
                ef.PhoneNumberTypeID);
            return(bo);
        }
コード例 #3
0
        public virtual PersonPhone MapBOToEF(
            BOPersonPhone bo)
        {
            PersonPhone efPersonPhone = new PersonPhone();

            efPersonPhone.SetProperties(
                bo.BusinessEntityID,
                bo.ModifiedDate,
                bo.PhoneNumber,
                bo.PhoneNumberTypeID);
            return(efPersonPhone);
        }
コード例 #4
0
        public virtual BOPersonPhone MapModelToBO(
            int businessEntityID,
            ApiPersonPhoneRequestModel model
            )
        {
            BOPersonPhone boPersonPhone = new BOPersonPhone();

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