What is the best way to handle multiple actions?

Like most web applications, you have a method that is called when you log in. There are a few things that you may need to do when they are logged in, and this can increase over time. eg. logging, welcome letters, service.

Should events be used for this or is there a better way? I am using C # and ASP.net MVC.

Update
This is already part of the Service Layer class. eg.

  public void Login(User user)
        {
            SetAuthCookie(user);
            LogLogin(user, true);
            SendEmails();
        }
+5
source share
3 answers

. , - .

0

. , , , , " ".

, . , Jimmy Bogard, . , , SO -

- , , , . , .

0
source

All Articles