There are two ways of creating an ngrx Action. One is to define a new class that implements the Action class and the other is to use the "createAction" function. I