Hi @zorgoz ,
You need to declare _mapper field whenever you instantiate your Controller class. This is the initial code:
You can also see the complete code here: github.com/willydavidjr/AutoFacAnd...
Of course, if you have some IoC experience, you can figure this out. However, in my opinion, this article is targeting a less experienced audience. This is why I missed this part.
I appreciate your feedback. I will update the article so that nothing will be missed out for future readers :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi @zorgoz ,
You need to declare _mapper field whenever you instantiate your Controller class. This is the initial code:
You can also see the complete code here: github.com/willydavidjr/AutoFacAnd...
Of course, if you have some IoC experience, you can figure this out. However, in my opinion, this article is targeting a less experienced audience. This is why I missed this part.
Hi @zorgoz ,
I appreciate your feedback. I will update the article so that nothing will be missed out for future readers :)