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

            patch.Replace(x => x.EndDate, model.EndDate);
            patch.Replace(x => x.ModifiedDate, model.ModifiedDate);
            patch.Replace(x => x.Rowguid, model.Rowguid);
            patch.Replace(x => x.StartDate, model.StartDate);
            patch.Replace(x => x.TerritoryID, model.TerritoryID);
            return(patch);
        }
Beispiel #2
0
        public virtual ApiSalesTerritoryHistoryRequestModel MapResponseToRequest(
            ApiSalesTerritoryHistoryResponseModel response)
        {
            var request = new ApiSalesTerritoryHistoryRequestModel();

            request.SetProperties(
                response.EndDate,
                response.ModifiedDate,
                response.Rowguid,
                response.StartDate,
                response.TerritoryID);
            return(request);
        }
Beispiel #3
0
        public virtual ApiSalesTerritoryHistoryResponseModel MapRequestToResponse(
            int businessEntityID,
            ApiSalesTerritoryHistoryRequestModel request)
        {
            var response = new ApiSalesTerritoryHistoryResponseModel();

            response.SetProperties(businessEntityID,
                                   request.EndDate,
                                   request.ModifiedDate,
                                   request.Rowguid,
                                   request.StartDate,
                                   request.TerritoryID);
            return(response);
        }