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

            patch.Replace(x => x.EmployeeID, model.EmployeeID);
            patch.Replace(x => x.Freight, model.Freight);
            patch.Replace(x => x.ModifiedDate, model.ModifiedDate);
            patch.Replace(x => x.OrderDate, model.OrderDate);
            patch.Replace(x => x.RevisionNumber, model.RevisionNumber);
            patch.Replace(x => x.ShipDate, model.ShipDate);
            patch.Replace(x => x.ShipMethodID, model.ShipMethodID);
            patch.Replace(x => x.Status, model.Status);
            patch.Replace(x => x.SubTotal, model.SubTotal);
            patch.Replace(x => x.TaxAmt, model.TaxAmt);
            patch.Replace(x => x.TotalDue, model.TotalDue);
            patch.Replace(x => x.VendorID, model.VendorID);
            return(patch);
        }
        public virtual ApiPurchaseOrderHeaderRequestModel MapResponseToRequest(
            ApiPurchaseOrderHeaderResponseModel response)
        {
            var request = new ApiPurchaseOrderHeaderRequestModel();

            request.SetProperties(
                response.EmployeeID,
                response.Freight,
                response.ModifiedDate,
                response.OrderDate,
                response.RevisionNumber,
                response.ShipDate,
                response.ShipMethodID,
                response.Status,
                response.SubTotal,
                response.TaxAmt,
                response.TotalDue,
                response.VendorID);
            return(request);
        }