Skip to content

Instantly share code, notes, and snippets.

@lira92
Created December 6, 2016 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lira92/09f92315b17a2bb1d692cbb6b685822f to your computer and use it in GitHub Desktop.
Save lira92/09f92315b17a2bb1d692cbb6b685822f to your computer and use it in GitHub Desktop.
dependency injection
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