Exemple #1
0
        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);
        }
Exemple #2
0
 public bool DeleteTask(TaskModel task)
 {
     return true;
 }
Exemple #3
0
 public bool UpdateTask(TaskModel task)
 {
     return true;
 }
Exemple #4
0
 public bool CreateTask(TaskModel task)
 {
     task.Id = TasksDataServiceClient.GetNewId();
     return true;
 }