コード例 #1
0
        public void UZ_WebApiClientUZWagon()
        {
            WebAPIClientUZ client = new WebAPIClientUZ(service.Null);

            Console.WriteLine("Запрос....");
            //List<string> list2 = client.GetInfoWagon(58647785);
            UZWagonInfo info = client.GetInfoWagonOfNum(62079280);
        }
コード例 #2
0
 public IHttpActionResult GetInfoWagonOfNum(int num)
 {
     try
     {
         WebAPIClientUZ client     = new WebAPIClientUZ(service.Null);
         UZWagonInfo    wagon_info = client.GetInfoWagonOfNum(num);
         return(Ok(wagon_info));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }