Since in Micro applications we don't have the Dispatcher, I'm trying to understand what's the best way to approach reusing identical sections of code within a controller or potentially across them.
As an example, in my app I have User Registration and Login functions, they're both within the same controller, however, once a user registers successfully, I'd like to go through all the same actions that I would if they were logging in with their new account, but do it immediately. Ideally, I'd actually just call the Login function and let it access all the same POST variable data that the Registration action used to register the user.
Better yet, having a separate login function that can take a user model and do the necessary actions to log them in and simply having the login function and registration function pass the user model they pulled from the database would be ideal.
With Micro applications, what's the best practice for this? I can't seem to figure out how to use private controller functions across multiple actions without it throwing an error, and without the dispatcher it seems I can't just call another action within the same controller.