The question is in the title, actually - let s say I have a simple class like this:
public class Product {
public Int32 ID { get; set; }
public String Name { get; set; }
//...
}
When I use it in action method, like this:
public ViewResult DoSomething([Bind(Exclude="ID")]Product product] {
//...
}
what value will product.ID have inside this action method? Maybe it will be default value for Int32? And null in case ID is reference-type? I m just interested, didn t find it on the web.