private void btnUpdate_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         ErrandService.UpdateErrandAsync(Convert.ToInt32(idLoad.Text), UpdateStatus(), Comment()).GetAwaiter();
         updatelabel.Visibility = Visibility.Visible;
     }
     catch { }
 }
 private async void btnUpdateErrandStatus_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         ErrandService.UpdateErrandAsync(Convert.ToInt32(tbidLoad.Text), UpdateStatus()).GetAwaiter();
     }
     catch
     {
         string        message   = "Something went wrong";
         MessageDialog msgdialog = new MessageDialog(message, "Error Message");
         await msgdialog.ShowAsync();
     }
 }