How to call dependency injection method frm outsde controler
we are getting the error when calling the dependency injection method from outside the controller. because the interface object is null.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Thiyagarajan EPosted Nov 9, 2016, 8:03 PM
var objDb = DependencyResolver.Current.GetService