I have a model similar to this:
public class SampleModel { public Product Product { get; set; } }
And in my controller I get an excep
Before using (strongly type html helper into view) this line
@Html.TextBoxFor(p => p.Product.Name)
You should include your model into you page for making strongly type view.
@model SampleModel