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