コード例 #1
0
        public virtual ApiPersonPhoneRequestModel MapResponseToRequest(
            ApiPersonPhoneResponseModel response)
        {
            var request = new ApiPersonPhoneRequestModel();

            request.SetProperties(
                response.ModifiedDate,
                response.PhoneNumber,
                response.PhoneNumberTypeID);
            return(request);
        }
コード例 #2
0
        public virtual ApiPersonPhoneResponseModel MapRequestToResponse(
            int businessEntityID,
            ApiPersonPhoneRequestModel request)
        {
            var response = new ApiPersonPhoneResponseModel();

            response.SetProperties(businessEntityID,
                                   request.ModifiedDate,
                                   request.PhoneNumber,
                                   request.PhoneNumberTypeID);
            return(response);
        }