In this practice exercise, you will be guided through modifying the SportsPro ap
In this practice exercise, you will be guided through modifying the SportsPro app to use a view model to pass data to the Incident Manager page and its Add/Edit Incident page. Upon completing this exercise, you should be able to improve efficiency of passing data to views using view models. Follow along with the instruction sheet and Panopto videos provided for the SportsPro – Use a view model with the Incidents Manager Practice Tutorial. The videos will guide you step-by-step through improving the transfer of data using a view model. You may use the starter application files provided below to begin this assignment.
Practice 8-2 SportsPro (instruction sheet only)
Practice Tutorial 8-2 SportsProIncidentsViewModels.html (links to instruction sheet and videos with zip file)
Video Instructions for Completing Practice 8-2 SportsPro
Instructions for Practice 8-2 Specification #1 Use a view model to pass data to the Incident Manager page01 Practice 8-2-1 Create the IncidentListViewModel class (15min 10sec)
02 Practice 8-2-1 Update the List action method in the Incident Controller to use the IncidentListViewModel to pass data to the Incident List view (10min 12sec)
03 Practice 8-2-1 Update the Incident List View to use the IncidentListViewModel to receive data (5min 17sec)
Instructions for Practice 8-2 Specification #2 Use a view model to pass data to the Add/Edit Incident page01 Practice 8-2-2 Create the IncidentViewModel class (8min 34sec)
02 Practice 8-2-2 Update the Add action method of the Incident Controller to use the IncidentViewModel to pass data to the AddEdit view (6min 34sec)
03 Practice 8-2-2 Update the Edit action method of the Incident Controller to use the IncidentViewModel to pass data to the AddEdit view (7min 24sec)
04 Practice 8-2-2 Update the Save action method of the Incident Controller to use the IncidentViewModel to save data to the database (11min 35sec)
05 Practice 8-2-2 Update the Incident AddEdit View to use the IncidentViewModel to receive data (30min 17sec)