
Topic 9 - Exercise 12
Examine the Use Case in Figure 4 and explain the MVC architecture of the online bookstore (the model the view and the controllers) needed to lookup books and add to shopping cart
Lookup Books. Model: Lookup Books, View: Book Search page, Controller: Book Search Controller
Customers are required to provide a search item in the search box. The book search controller passes the searching criteria to Lookup Books and redirects the display to Book Search Result page. Meantime model is displaying the search results.
Add to Shopping Cart. Model: Add to Shopping Cart, View: Add to Shopping Cart page, Controller: Add to Shopping Cart Controller
Customers input books information in the Add to Shopping Cart page.
The Add to Shopping Cart Controller passes the customer's selected information to Add to Shopping Cart for processing and redirects the display to Shopping Cart Result page. Meantime, model will be requested to display the result for the shopping cart updated with the item requested.

No comments:
Post a Comment