I have a model similar to this:
public class SampleModel { public Product Product { get; set; } }
And in my controller I get an excep
It seems to me that you have an untyped view. By default, Razor views in MVC3 RC are typed as dynamic. However, lambdas do not support dynamic members. You have to strongly type your model. At the top of your view file add
dynamic
@model SampleModel