Exemplo n.º 1
0
        public async Task <JsonResult> Get_Awb_Bills(string id)
        {
            var awb = new Awb();

            awb.Search_Value = await _shop_repo.Get_Shipping_Ids_By_Tracking_Id(id);

            var result = await _fetchr.Get_Awb_Bills(awb);

            return(Json(result));
        }
Exemplo n.º 2
0
        public async Task <JsonResult> Get_Awb_Bill(string id)
        {
            var awb = new Awb();

            awb.Search_Value = new List <string>()
            {
                id
            };
            var result = await _fetchr.Get_Awb_Bills(awb);

            return(Json(result));
        }
Exemplo n.º 3
0
 /// <summary>
 /// Get Awb Bills
 /// </summary>
 /// <param name="obj">Awb Search options</param>
 /// <returns>Awb Bill</returns>
 public async Task <DataResult <Awb_Bill> > Get_Awb_Bills(Awb obj)
 {
     client.ClearHeaders();
     client.AddHeader("authorization", Constant.FetchrTokenId);
     return(await client.PostData_WithStatusCode_Async <Awb_Bill>("https://business.fetchr.us/api/client/awb", obj));
 }