コード例 #1
0
        public JsonPatchDocument <ApiTransactionStatusRequestModel> CreatePatch(ApiTransactionStatusRequestModel model)
        {
            var patch = new JsonPatchDocument <ApiTransactionStatusRequestModel>();

            patch.Replace(x => x.Name, model.Name);
            return(patch);
        }
コード例 #2
0
        public virtual ApiTransactionStatusRequestModel MapResponseToRequest(
            ApiTransactionStatusResponseModel response)
        {
            var request = new ApiTransactionStatusRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
コード例 #3
0
        public virtual ApiTransactionStatusResponseModel MapRequestToResponse(
            int id,
            ApiTransactionStatusRequestModel request)
        {
            var response = new ApiTransactionStatusResponseModel();

            response.SetProperties(id,
                                   request.Name);
            return(response);
        }