public void SaveTask() { context.Fetch(); // re-populates with updated values currentTask.Name = taskDialog.Name; currentTask.Notes = taskDialog.Notes; currentTask.Done = taskDialog.Done; BL.Managers.TaskManager.SaveTask(currentTask); NavigationController.PopViewControllerAnimated(true); context.Dispose(); // per documentation }
public void SaveTask() { context.Fetch(); // re-populates with updated values currentTask.Name = taskDialog.Name; currentTask.Notes = taskDialog.Notes; currentTask.Done = taskDialog.Done; AppDelegate.Current.TaskMgr.SaveTodo(currentTask); NavigationController.PopViewController(true); context.Dispose(); // per documentation }