<p>I'm trying to design a homepage for an MVC site that has two different views, based on if the user is logged in or not.</p>

<p>So image the default (not logged in) view is showing general, nonspecific info. If i'm logged in, the view is showing mostly personal stuff instead.</p>

<p>What's the best practice to handling this? Don't forget, we also need to unit test this.</p>

<p>Thanks heaps!</p>

This should be a simple case of returning the appropriate view from your controller.
```
```
public ActionResult Index()

    If (User.IsLoggedOn)
    {
        // Do user-specific controller stuff here...

        return View("LoggedOnIndex");
    }
    else
    {
        // Do anon controller stuff here...

        return View("AnonymousIndex");
    }
```
```