コード例 #1
0
ファイル: CostingVM.cs プロジェクト: muhammedshah/Mattress
        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));

        }