public static ImmutableArray<Todo> CompleteAllTodosReducer(ImmutableArray<Todo> previousState, CompleteAllTodosAction action) { return previousState .Select(x => new Todo { Id = x.Id, Text = x.Text, IsCompleted = action.IsCompleted }) .ToImmutableArray(); }
public static ImmutableArray <Todo> CompleteAllTodosReducer(ImmutableArray <Todo> previousState, CompleteAllTodosAction action) { return(previousState .Select(x => new Todo { Id = x.Id, Text = x.Text, IsCompleted = action.IsCompleted }) .ToImmutableArray()); }