Replace Conditional Dispatcher With Command

Problem:

Conditional logic is used to dispatch requests and execute actions.

Solution:

Create a Command for each action. Store the Commands in a collection and replace the conditional logic with code to fetch and execute Commands.