Created
December 6, 2016 15:55
-
-
Save lira92/09f92315b17a2bb1d692cbb6b685822f to your computer and use it in GitHub Desktop.
dependency injection
This file contains hidden or 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 IBancoRepository _bancoRepository; | |
public BancosController() | |
{ | |
var repository = Global.container.GetInstance<IBancoRepository>(); | |
_bancoRepository = repository; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment