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

            request.SetProperties(
                response.Password,
                response.Username);
            return(request);
        }
Example #2
0
        public virtual ApiUserClientResponseModel MapClientRequestToResponse(
            int id,
            ApiUserClientRequestModel request)
        {
            var response = new ApiUserClientResponseModel();

            response.SetProperties(id,
                                   request.Password,
                                   request.Username);
            return(response);
        }