Created
May 10, 2012 02:49
-
-
Save derans/2650678 to your computer and use it in GitHub Desktop.
Sample Controllers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HomeController : Controller | |
{ | |
private readonly IUserSession _userSession; | |
public HomeController(IUserSession userSession) | |
{ | |
_userSession = userSession; | |
} | |
} | |
public class AccountController : Controller | |
{ | |
private readonly IAuthenticationService _authenticationService; | |
public AccountController(IAuthenticationService authenticationService) | |
{ | |
_authenticationService = authenticationService; | |
} | |
} | |
public class RegistrationController : Controller | |
{} | |
public class AboutController : Controller | |
{} | |
public class FooController : Controller | |
{} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment