I am working on an ASP.NET MVC application. I have the following view model in c#:
public class ContactModel { public string Address { get; set; } pu
If you are using @html helper for properties then form.serialize() method will bind all the properties otherwise if you are using html elements like the assign their name property same as model property.
@html
form.serialize()