示例#1
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);
        }
示例#2
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);
        }