コード例 #1
0
        public virtual ApiPostLinkClientRequestModel MapClientResponseToRequest(
            ApiPostLinkClientResponseModel response)
        {
            var request = new ApiPostLinkClientRequestModel();

            request.SetProperties(
                response.CreationDate,
                response.LinkTypeId,
                response.PostId,
                response.RelatedPostId);
            return(request);
        }
コード例 #2
0
        public virtual ApiPostLinkClientResponseModel MapClientRequestToResponse(
            int id,
            ApiPostLinkClientRequestModel request)
        {
            var response = new ApiPostLinkClientResponseModel();

            response.SetProperties(id,
                                   request.CreationDate,
                                   request.LinkTypeId,
                                   request.PostId,
                                   request.RelatedPostId);
            return(response);
        }