private async Task GetStatuses()
 {
     try
     {
         Statuses = await statusAPIHelper.GetStatuses(ParentLayout.LoggedInUser.Token);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error");
     }
 }
Exemple #2
0
        private async Task GetStatuses()
        {
            try
            {
                Statuses = await statusAPIHelper.GetStatuses(LoggedInUser.Token);

                SelectedStatus = Statuses.Where(s => s.Title == "In Progress").FirstOrDefault();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error");
            }
        }
 private async Task GetStatuses()
 {
     try
     {
         IsProgressing = true;
         Statuses      = await apiHelper.GetStatuses(ParentLayout.LoggedInUser.Token);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error");
     }
     finally
     {
         IsProgressing = false;
     }
 }