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

            request.SetProperties(
                response.Count,
                response.ExcerptPostId,
                response.TagName,
                response.WikiPostId);
            return(request);
        }
コード例 #2
0
        public virtual ApiTagClientResponseModel MapClientRequestToResponse(
            int id,
            ApiTagClientRequestModel request)
        {
            var response = new ApiTagClientResponseModel();

            response.SetProperties(id,
                                   request.Count,
                                   request.ExcerptPostId,
                                   request.TagName,
                                   request.WikiPostId);
            return(response);
        }