Example #1
0
        public virtual ApiPersonClientRequestModel MapClientResponseToRequest(
            ApiPersonClientResponseModel response)
        {
            var request = new ApiPersonClientRequestModel();

            request.SetProperties(
                response.FirstName,
                response.LastName,
                response.Phone,
                response.Ssn);
            return(request);
        }
Example #2
0
        public virtual ApiPersonClientResponseModel MapClientRequestToResponse(
            int id,
            ApiPersonClientRequestModel request)
        {
            var response = new ApiPersonClientResponseModel();

            response.SetProperties(id,
                                   request.FirstName,
                                   request.LastName,
                                   request.Phone,
                                   request.Ssn);
            return(response);
        }