示例#1
0
 public void AddTodo(Todo task)
 {
     task.Id = repo.CreateId();
     repo.Create(task);
     if (task.Notify == 1)
     {
         task.CreateNotification();
     }
     if (task.Notify == 2)
     {
         task.CreateAlarm();
     }
 }
示例#2
0
 public void AddTodo(Todo task)
 {
     task.Id = repo.CreateId();
     repo.Create(task);
 }