Esempio n. 1
0
 private void RemoveAction(RemoveTodoAction action)
 {
     _todoCollection.Delete(action.Id);
 }
Esempio n. 2
0
        private static ImmutableArray <TodoItem> RemoveTodoReducer(ImmutableArray <TodoItem> previousState, RemoveTodoAction action)
        {
            var todoToDelete = previousState.First(todo => todo.Id == action.Id);

            return(previousState.Remove(todoToDelete));
        }