private async void MarkOrderLineAgainstIT(InvTransClient selectedItem) { OrderAPI orderApi = new OrderAPI(api); busyIndicator.IsBusy = true; var err = await orderApi.MarkedOrderLineAgainstInvTrans(debtorOrderLine, selectedItem); busyIndicator.IsBusy = false; if (err != ErrorCodes.Succes) { UtilDisplay.ShowErrorCode(err); } else { dockCtrl.CloseDockItem(); } }