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

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

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

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