3.3.3 Question
Multiple Choice
You have been tasked with modernizing an application created in ASP 3.0. Part of one of the pages contains HTML that comes as a string from a third-party application as part of a service call that populates part of a form. The same form contains input values for your application.
You need to support the same business process as the original application, but you also want to use some MVC features. What is the approach?
- A. Create a single model containing information from your local application. Use strongly-typed binding as much as possible and manually match the rest of the fields.
- B. Create a single model for the local input fields and the service call input, and use ToValueProvider to map the entire object.
- C. Create a single model. Use weakly-typed binding for the form fields, and the HTML provided by the third-party application.
- D. Create a model that contains only your fields and strongly bind the fields to the model. Create a second model that maps to the fields in the imported HTML and bind to that model using ToValueProvider.