What is the way to re-use the Events?
What is the best way to re-use the events with different parameter?
For example in one view, we dispatch an event called GetStudentsEvent("FirstYear");
in another view, we dispatch an event called GetStudentsEvent("SecondYear");
The problem is, in the Command, we should set the result in ModelLoator,
for example modelLocator.studentList;
So the 2 views will have the some result.
What I do is to create every time a different object in modelLocator when
an event is re-used. For example: modelLocator.studentList1, modelLocator.studentList2, ...
and in the Command, I check the event's parameter and set the values to different modelLocator.
Are there any better ways to do this?
