private async void DoMarkAsDelivered(object obj) { if (DeliveryBatch != null) { try { WorkInProgress = true; var status = await RestHub.UpdateDeliveryStatus(DeliveryBatch.Id); if (status.HttpCode == System.Net.HttpStatusCode.OK) { AppInfoBox.ShowInfoMessage(status.StatusMessage); } else { AppErrorBox.ShowErrorMessage("Can't Update delivery status . .", status.HttpResponse); } } catch (Exception ex) { AppErrorBox.ShowErrorMessage("Can't Update delivery status . .", ex.ToString()); } finally { WorkInProgress = false; } } else { AppInfoBox.ShowInfoMessage("Please select atleast one batch to update delivery status"); } }