Exemple #1
0
        public override RequestResult <List <SlopeControlDataDto> > WebRequest(SlopeControlDataByGroupIdEventData eventData)
        {
            SlopeControlDataClientServiceProxy slopeControlDataClientServiceProxy = new SlopeControlDataClientServiceProxy(apiHost, httpClient);
            var res = slopeControlDataClientServiceProxy.GetAllAsync(eventData.machiningDataGroupId, 0, 50).Result;

            return(new RequestResult <List <SlopeControlDataDto> >()
            {
                Result = res.Result.Items.ToList(),
                Error = res.Error,
                Success = res.Success,
                TargetUrl = res.TargetUrl,
                UnAuthorizedRequest = res.UnAuthorizedRequest
            });
        }
Exemple #2
0
        public override RequestResult <SlopeControlDataDto> WebRequest(UpdateSlopeControlDataEventData eventData)
        {
            SlopeControlDataClientServiceProxy slopeControlDataClientServiceProxy = new SlopeControlDataClientServiceProxy(apiHost, httpClient);

            return(slopeControlDataClientServiceProxy.UpdateAsync(eventData.UpdateSlopeControlData).Result);
        }