Description
In this practice exercise, you will be guided through modifying the SportsPro app, so it uses TempData to display messages when an add, update, or deleted database operation for a product is successful. Upon completing this exercise, you should be able to enhance the SportsPro application by displaying useful messages and data to the end user to improve the end user experience. Follow along with the instruction sheet and Panopto videos provided for the SportsPro – Use TempData to display messages. The videos will guide you step-by-step through including informative messages with data to inform the end user when a database operation is successful.You may use the starter application files provided below to begin this assignment.Practice 8-1 SportsPro (instruction sheet only)Practice Tutorial 8-1 SportsProTempDataMessages.html (links to instruction sheet and videos with zip file)
Unformatted Attachment Preview
Chapter 8 How transfer data from controllers
Practice 8-1 Use TempData to display messages
For this assignment, you’ll modify the SportsPro website so it uses TempData to display messages when a
database operation (Add, Update, Delete) for a Product is successful. Study figure 8-14 in your textbook for
more detailed information about using TempData.
The Product Manager page after a new product has been added
Specifications
1. In the Product controller, use TempData to store a success message after each successful add, edit,
or delete operation. Then, display the message on the Product Manager page. To do that, you can
add some code to the layout that displays a TempData message across the top of the page if the
message exists.
2. Optional: For additional practice with using the TempData property, go ahead and store a success
message in TempData when data is successfully added, updated, or deleted for Customers,
Technicians, and Incidents.
Turn in the SportsPro app
1. Once you are satisfied with your application, close Visual Studio, compress the SportsPro app at the root
level, and rename the compressed folder using the following naming convention:
FirstInitial_LastName_Ch08SportsPro_8-1
For example:
M_Korzaan_Ch08SportsPro_8-1
Upload the renamed, compressed folder to the appropriate Dropbox in D2L.
Purchase answer to see full
attachment