private void RemoveAction(RemoveTodoAction action) { _todoCollection.Delete(action.Id); }
private static ImmutableArray <TodoItem> RemoveTodoReducer(ImmutableArray <TodoItem> previousState, RemoveTodoAction action) { var todoToDelete = previousState.First(todo => todo.Id == action.Id); return(previousState.Remove(todoToDelete)); }