Beispiel #1
0
        public virtual ApiPersonRequestModel MapResponseToRequest(
            ApiPersonResponseModel response)
        {
            var request = new ApiPersonRequestModel();

            request.SetProperties(
                response.PersonName);
            return(request);
        }
Beispiel #2
0
        public virtual ApiPersonResponseModel MapRequestToResponse(
            int personId,
            ApiPersonRequestModel request)
        {
            var response = new ApiPersonResponseModel();

            response.SetProperties(personId,
                                   request.PersonName);
            return(response);
        }