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.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Thiyagarajan ERank #2,329 · 607 reputationPosted Nov 9, 2016, 3:03 PM EST
var objDb = DependencyResolver.Current.GetService