public static ImmutableArray<Todo> AddTodoReducer(ImmutableArray<Todo> previousState, AddTodoAction action) { return previousState .Insert(0, new Todo { Id = Guid.NewGuid(), Text = action.Text }); }
public static ImmutableArray <Todo> AddTodoReducer(ImmutableArray <Todo> previousState, AddTodoAction action) { return(previousState .Insert(0, new Todo { Id = Guid.NewGuid(), Text = action.Text })); }