private void OnCreateTaskCommand(object parameter) { var task = new TaskModel { Complete = false, Title = this.NewTitle }; // create task in the database this.client.CreateTask(task); // add task to local collection this.Tasks.Add(task); }
public bool DeleteTask(TaskModel task) { return true; }
public bool UpdateTask(TaskModel task) { return true; }
public bool CreateTask(TaskModel task) { task.Id = TasksDataServiceClient.GetNewId(); return true; }