private async Task deliverSOAsync() { string orderNumber = SONumber.Text; if (!String.IsNullOrEmpty(orderNumber)) { try { var result = await client.DeliverSOAsync(orderNumber); MessageBox.Show(result); } catch (Exception ex) { ExceptionHandler.Log(ex, ctx.Directory); MessageBox.Show("Došlo je do greške"); } } else { MessageBox.Show("Nedostaje broj narudžbe"); } }