public void CreateNewList(TodoListModel newList){ if (lists.Any (x => x.listName == newList.listName)) return; newList.SaveTodoList (); lists.Add (newList); listsId.Add (newList.listId); SaveAllListsIds (); }
public void CreateNewList(string listName){ if (lists.Any (x => x.listName == listName)) return; TodoListModel newList = new TodoListModel (GetListId(),listName); newList.SaveTodoList (); lists.Add (newList); listsId.Add (newList.listId); SaveAllListsIds (); }
public void EditCurrentList(TodoListModel list){ list.SaveTodoList (); }