Razor Partial View Error
问题 I'm following the example website being built in Pro ASP.NET MVC 2 Framework (but using Razor instead of ASPX as I go along). However, I've hit a snag with a partial view. I'm getting the following error: The model item passed into the dictionary is of type 'SportsStore.WebUI.Models.ProductsListViewModel', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[SportsStore.WebUI.Models.NavLink]'. Here are the relevant files: _Layout.cshtml: <!DOCTYPE html>