/// <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); } }); }); }