1.1.1 Question
Multiple Choice
You are designing an application in which a section of the main page will be populated by content from a third-party provider. You do not have control over the responsiveness of the client or how much information will be returned with each request.
The call is to a RESTful service and will return the information formatted in Extensible Markup Language (XML). What is the best way to implement this application?
- A. Design a model that handles the data call to populate the model. Create a partial view containing only this display area and put an asynchronous service call that returns this model in the partial view controller.
- B. Put a synchronous service call into the main page controller.
- C. Create a partial view containing only this display area and put a synchronous service call in the partial view controller.
- D. Create a partial view containing only this display area and put an asynchronous service call in the partial view controller.