Skip to content

Instantly share code, notes, and snippets.

@derans
Created May 10, 2012 02:49
Show Gist options
  • Save derans/2650678 to your computer and use it in GitHub Desktop.
Save derans/2650678 to your computer and use it in GitHub Desktop.
Sample Controllers
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