Lookup books:
- View: A customer looks up or searches for book from a web page.
- Controller: The controller takes in the request, makes a call to the database and loads the data into memory which is the model.
- Model: The model is the object in memory that holds the data that is returned in step 2.
- Controller: The controller retrieves the data from the model and pass it to the view.
- View: The page is displayed that contains data returned in step 4.
- View: A customer add a book to the shopping cart.
- Controller: The controller takes the request, creates the model object and the request to the model.
- Model: The model is the object in memory that contains the book add to shopping cart in step 1.
- Controller: The controller gets the message from step 2 on whether the book has been successfully added or not.
- View: The controller passes the message from step 4 to customer that the book is successfully added or could not be added.
No comments:
Post a Comment