public void Test_ClientTRK_IssueFuelTRK() { try { ClientTRK client = new ClientTRK(); int res = client.IssueFuelTRK(11, true, 2 * 100); Console.WriteLine("res - {0}", res); } catch (Exception e) { Console.WriteLine(e); } }
public int PostGunStart([FromBody] GunStart value) { try { //int res = client.IssueFuelTRK(value.num, value.passage, value.volume * 100); int res = client.IssueFuelTRK(value.num, value.passage, value.volume); return(res); } catch (Exception e) { String.Format("Ошибка выполнения метода API:PostGunStart(value={0})", value).SaveError(e); return(-1); } }