コード例 #1
0
        private async void btnGetEndPoints_Click(object sender, EventArgs e)
        {
            Initialize();

            APIEndpointRequestModels.GetEndpointsList model = new APIEndpointRequestModels.GetEndpointsList();
            model.DeviceID = 0; model.PageNumber = 1; model.PageSize = 1; model.Token = Guid.Parse(txtToken.Text);

            APIEndpointResponseModels.GetEndpointsList ends = await uow.EndPointsService.GetEndpointsListAsync(model);

            gv1.DataSource = ends.Endpoints;
        }
コード例 #2
0
        public async Task <APIEndpointResponseModels.GetEndpointsList> GetEndpointsWithWarningsList(APIEndpointRequestModels.GetEndpointsList rm)
        {
            string strResult = await HttpPost("/api/Endpoints/GetEndpointsWithWarningsList", JsonConvert.SerializeObject(rm));

            APIEndpointResponseModels.GetEndpointsList result = (APIEndpointResponseModels.GetEndpointsList)JsonConvert.DeserializeObject(strResult, typeof(APIEndpointResponseModels.GetEndpointsList));
            return(result);
        }