I'm following a tutorial in Pro ASP.NET MVC 5. I get this error:
ewModel>' does not contain a definition for 'PageLinks'
and no extension method 'PageLinks' accepting a first argument of type
ewModel>' could be found
(are you missing a using directive or an assembly reference?)
Project File SportsStore.WebUI
Suppression State Active
The code is attached.
The error points to line 15 of LIst.cshtml. It seems to say that I'm passing a ProductsListViewModel as the first argument, but I'm passing a PagingInfo. I successfully call this method in UnitTest.cs
Why does it think a PagingInfo is it's parent, ProductsListViewModel?