public virtual ApiSalesPersonQuotaHistoryRequestModel MapResponseToRequest( ApiSalesPersonQuotaHistoryResponseModel response) { var request = new ApiSalesPersonQuotaHistoryRequestModel(); request.SetProperties( response.ModifiedDate, response.QuotaDate, response.Rowguid, response.SalesQuota); return(request); }
public virtual ApiSalesPersonQuotaHistoryResponseModel MapRequestToResponse( int businessEntityID, ApiSalesPersonQuotaHistoryRequestModel request) { var response = new ApiSalesPersonQuotaHistoryResponseModel(); response.SetProperties(businessEntityID, request.ModifiedDate, request.QuotaDate, request.Rowguid, request.SalesQuota); return(response); }
public JsonPatchDocument <ApiSalesPersonQuotaHistoryRequestModel> CreatePatch(ApiSalesPersonQuotaHistoryRequestModel model) { var patch = new JsonPatchDocument <ApiSalesPersonQuotaHistoryRequestModel>(); patch.Replace(x => x.ModifiedDate, model.ModifiedDate); patch.Replace(x => x.QuotaDate, model.QuotaDate); patch.Replace(x => x.Rowguid, model.Rowguid); patch.Replace(x => x.SalesQuota, model.SalesQuota); return(patch); }