Ejemplo n.º 1
0
        public async void SaveCost()
        {
            CostingModel costingModel = new CostingModel()
            {
                Density   = this.Density,
                Length    = this.Length,
                Weight    = this.Weight,
                Width     = this.Width,
                Thickness = this.Thickness
            };
            string         requestUrl     = "http://10.6.0.133/api/Test";
            ServiceHandler serviceHandler = new ServiceHandler();
            string         jsonContent    = JsonConvert.SerializeObject(costingModel);
            string         result         = await serviceHandler.PostRequest(requestUrl, jsonContent);

            //BaseResponse addGroupResponse = (BaseResponse)JsonConvert.DeserializeObject(result, typeof(BaseResponse));
        }
Ejemplo n.º 2
0
        public async void SaveCost()
        {
            CostingModel costingModel = new CostingModel() 
            {
                Density = this.Density,
                Length = this.Length,
                Weight = this.Weight,
                Width = this.Width,
                Thickness = this.Thickness
            };
            string requestUrl = "http://10.6.0.133/api/Test";
            ServiceHandler serviceHandler = new ServiceHandler();
            string jsonContent = JsonConvert.SerializeObject(costingModel);
            string result = await serviceHandler.PostRequest(requestUrl, jsonContent);
            //BaseResponse addGroupResponse = (BaseResponse)JsonConvert.DeserializeObject(result, typeof(BaseResponse));

        }