views:

11

answers:

0
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ProductViewModel>" %>

<%= Html.DisplayFor(m => m.Product.Name) %>

Does not work. It says: "The type arguments for method ... cannot be inferred from the usage. Try specifying the type arguments explicitly."