Пример #1
0
 /// <summary>
 /// Saves the assignment.
 /// </summary>
 private void SaveAssignment()
 {
     assignmentViewModel.SaveAssignmentAsync(assignment)
     .ContinueWith(_ => {
         BeginInvokeOnMainThread(() => {
             if (assignment.Status == AssignmentStatus.Active || assignment.Status == AssignmentStatus.Declined)
             {
                 controller.ReloadAssignments();
             }
             else
             {
                 controller.ReloadSingleRow(indexPath);
             }
         });
     });
 }