Created
July 23, 2016 00:48
-
-
Save PaulDuffy3/28816a47322f4471081a09e19bfb04fa to your computer and use it in GitHub Desktop.
Inject Repository into Controller
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
private readonly Repositories.IUserRepository repository; | |
public HomeController(Repositories.IUserRepository iRepository) | |
{ | |
repository = iRepository; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment