private void ExecuteRemoveListCommand(ViewModels.TodoListViewModel list) { try { var index = TodoLists.IndexOf(list); TodoLists.Remove(list); SaveCommand.Execute(null); } catch { } }
public void RemoveTodoList(TodoList todoList) { TodoLists.Remove(todoList); SaveChanges(); }