Hi
I am getting this error -
|
Name |
Value |
Type |
? |
$exception |
{"The best overloaded method match for 'NimbusAPi.AwbTracking.GetData(string)' has some invalid arguments"} |
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException |
dynamic json = JsonConvert.DeserializeObject(response.Content);
GridView1.DataSource = GetData(json);
GridView1.DataBind();
}
private DataTable GetData(string jsondata)
{
string json = jsondata;
rootObject = JsonConvert.DeserializeObject<RootObject>(json);
List<OrderDetails> orderDetails = new List<OrderDetails>();
orderDetails.Add(rootObject.data);
DataTable dataTable = ToDataTable(orderDetails);
return dataTable;
}
Below is the response returned
{"status":true,"data":{"id":"16621681","order_id":"29920015","order_number":"890","created":"2022-12-26","edd":"","pickup_date":"","rto_initiate_date":"","delivered_date":"","shipped_date":"","awb_number":"14189990126365","rto_awb":"","courier_id":"3","warehouse_id":"132002","rto_warehouse_id":"132002","status":"cancelled","rto_status":"","shipment_info":"","history":[{"status_code":"PP","location":"CAR\/HUB, Chandigarh, CHANDIGARH","event_time":"2022-12-26 19:37","message":"Pickup Not Done"},{"status_code":"PP","location":"CAR\/HUB, Chandigarh, CHANDIGARH","event_time":"2022-12-26 12:10","message":"Out for Pickup"},{"status_code":"PP","location":"CAR\/HUB, Chandigarh, CHANDIGARH","event_time":"2022-12-26 11:17","message":"Pending"}]}}
Thanks