public JsonPatchDocument <ApiTransactionHistoryRequestModel> CreatePatch(ApiTransactionHistoryRequestModel model)
        {
            var patch = new JsonPatchDocument <ApiTransactionHistoryRequestModel>();

            patch.Replace(x => x.ActualCost, model.ActualCost);
            patch.Replace(x => x.ModifiedDate, model.ModifiedDate);
            patch.Replace(x => x.ProductID, model.ProductID);
            patch.Replace(x => x.Quantity, model.Quantity);
            patch.Replace(x => x.ReferenceOrderID, model.ReferenceOrderID);
            patch.Replace(x => x.ReferenceOrderLineID, model.ReferenceOrderLineID);
            patch.Replace(x => x.TransactionDate, model.TransactionDate);
            patch.Replace(x => x.TransactionType, model.TransactionType);
            return(patch);
        }
        public virtual ApiTransactionHistoryRequestModel MapResponseToRequest(
            ApiTransactionHistoryResponseModel response)
        {
            var request = new ApiTransactionHistoryRequestModel();

            request.SetProperties(
                response.ActualCost,
                response.ModifiedDate,
                response.ProductID,
                response.Quantity,
                response.ReferenceOrderID,
                response.ReferenceOrderLineID,
                response.TransactionDate,
                response.TransactionType);
            return(request);
        }