Beispiel #1
0
        public JsonPatchDocument <ApiTransactionStatuRequestModel> CreatePatch(ApiTransactionStatuRequestModel model)
        {
            var patch = new JsonPatchDocument <ApiTransactionStatuRequestModel>();

            patch.Replace(x => x.Name, model.Name);
            return(patch);
        }
Beispiel #2
0
        public virtual ApiTransactionStatuRequestModel MapResponseToRequest(
            ApiTransactionStatuResponseModel response)
        {
            var request = new ApiTransactionStatuRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
Beispiel #3
0
        public virtual ApiTransactionStatuResponseModel MapRequestToResponse(
            int id,
            ApiTransactionStatuRequestModel request)
        {
            var response = new ApiTransactionStatuResponseModel();

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