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