I am trying to introduce Automapper into an application for the first time, but I keep getting an error saying I have some invalid arguments.
My model:
You are mapping collections, not single entities (IEnumerable<Store> to IEnumerable<StoreVM>), so use this mapping
IEnumerable<Store>
IEnumerable<StoreVM>
var VMstores = Mapper.Map<IEnumerable<Store>, IEnumerable<StoreVM>>(stores);
Update! Now you can do this:
var VMstores = stores.Project().To<StoreVM>();