mardi 2 juin 2015

MVC - Creating a Model for a form

I'm fairly new to MVC and am looking for some advice in relation to creating Models for online forms. I'm trying to convert a paper based form into an online version.

Link to form: Extract of form

So I'm looking for some advice on setting up the model:

  1. What do I name the properties of the model? I've done simple forms in the past with properties such as Name, Address, Postcode etc - which are easy to label in the model, but with more complex questions what would be best practice on labelling the properties?
  2. How do I handle 2+ part questions such as Questions 1,4 and 6 in the attached form?

Any advice would be greatly appreciated :)




Aucun commentaire:

Enregistrer un commentaire