I am using Automapper 5.2. I have used as a basis this link. I will describe, in steps, the process of setting up Automapper that I went through.
First
Starting with V9.0 of autoMapper, the static API is no longer available. or you can change version to 6.2.2 from NuGet Package Manager See this doc confgiration AutoMapper