You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Launch **File Explorer** and navigate to the location the file was saved.
46
+
1. Launch **File Explorer** and navigate to the location where you saved the file.
47
47
48
48
1. Unzip the file into it's own folder.
49
49
@@ -73,13 +73,13 @@ In this section you download the code for the Fruit web app and the Fruit API. Y
73
73
74
74
>**Note:** Leave the Fruit API running throughout the rest of the exercise.
75
75
76
-
### Task 2: Download and open web app project
76
+
### Download and open web app project
77
77
78
78
1. Right-click the following link and select the **Save link as** option.
79
79
80
80
* [Fruit web app render project code](https://raw.githubusercontent.com/MicrosoftLearning/mslearn-aspnet-api/main/Allfiles/Downloads/FruitWebApp-render.zip)
81
81
82
-
1. Launch **File Explorer** and navigate to the location the file was saved.
82
+
1. Launch **File Explorer** and navigate to the location where you saved the file.
83
83
84
84
1. Unzip the file into it's own folder.
85
85
@@ -97,7 +97,7 @@ In this section you download the code for the Fruit web app and the Fruit API. Y
97
97
98
98
The Fruit web app displays the API sample data on the home page. You need to add code to iterate through the sample data returned by the HTTP **GET** operation performed in the code-behind file.
99
99
100
-
### Task 1: Add code to render data in a table
100
+
### Add code to render data in a table
101
101
102
102
1. Select the *Home.razor* file in the **Explorer** pane to open it for editing.
103
103
@@ -146,6 +146,8 @@ The Fruit web app displays the API sample data on the home page. You need to add
146
146
147
147
1. Save the changes to *Home.razor*, and review the comments in the code.
148
148
149
+
### Test the home page
150
+
149
151
1. In the Visual Studio Code top menu select **Run \| Start debugging**, or select **F5**. After the project is finished building a browser window should launch with the web app running
150
152
151
153
1. Verify the Index page displays the sample data from the API.
@@ -158,11 +160,11 @@ The Fruit web app displays the API sample data on the home page. You need to add
158
160
159
161
1. To continue with the exercise close the browser, or browser tab, and in Visual Studio Code select **Run \| Stop debugging** or **Shift + F5**.
160
162
161
-
## Implement code to handle the **Add to list** functionality
163
+
## Implement code to handle the *Add to list* functionality
162
164
163
165
The add, edit, and delete operations are each handled on a separate *.razor* page in the project. In this section you add code to create a form in the *Add.razor* file to enable adding data to the list.
164
166
165
-
### Task 1: Add code to create the add data form
167
+
### Add code to create the add data form
166
168
167
169
1. Select the *Add.razor* file in the **Explorer** pane to open it for editing.
168
170
@@ -199,6 +201,8 @@ The add, edit, and delete operations are each handled on a separate *.razor* pag
199
201
200
202
1. Save the changes to *Add.razor*, and review the comments in the code.
201
203
204
+
### Test the *Add* functionality
205
+
202
206
1. In the Visual Studio Code top menu select **Run \| Start debugging**, or select **F5**. After the project is finished building a browser window should launch with the web app running
203
207
204
208
1. Select **Add to list** on the page.
@@ -209,11 +213,11 @@ The add, edit, and delete operations are each handled on a separate *.razor* pag
209
213
210
214
1. To continue with the exercise close the browser, or browser tab, and in Visual Studio Code select **Run \| Stop debugging** or **Shift + F5**.
211
215
212
-
## Implement code to handle the **Edit** functionality
216
+
## Implement code to handle the *Edit* functionality
213
217
214
218
In this section you add code to create a form in the *Edit.cshtml* file to enable editing data to the list.
215
219
216
-
### Task 1: Add code for the edit form
220
+
### Add code for the edit form
217
221
218
222
1. Select the *Edit.razor* file in the **Explorer** pane to open it for editing.
219
223
@@ -250,6 +254,8 @@ In this section you add code to create a form in the *Edit.cshtml* file to enabl
250
254
251
255
1. Save the changes to *Edit.razor*, and review the comments in the code.
252
256
257
+
### Test the *Edit* functionality
258
+
253
259
1. In the Visual Studio Code top menu select **Run \| Start debugging**, or select **F5**. After the project is finished building a browser window should launch with the web app running
254
260
255
261
1. Choose an item in the list to change and select **Edit** in that row.
@@ -260,11 +266,11 @@ In this section you add code to create a form in the *Edit.cshtml* file to enabl
260
266
261
267
1. To continue with the exercise close the browser, or browser tab, and in Visual Studio Code select **Run \| Stop debugging** or **Shift + F5**.
262
268
263
-
## Implement code to handle the **Delete** functionality
269
+
## Implement code to handle the *Delete* functionality
264
270
265
271
In this section you add code to create a form in the *Delete.cshtml* file to enable deleting data from the list.
266
272
267
-
### Task 1: Add code for the delete form
273
+
### Add code for the delete form
268
274
269
275
1. Select the *Delete.razor* file in the **Explorer** pane to open it for editing.
270
276
@@ -301,7 +307,7 @@ In this section you add code to create a form in the *Delete.cshtml* file to ena
301
307
302
308
1. Save the changes to *Delete.razor*, and review the comments in the code.
303
309
304
-
## Run and test the app
310
+
### Test the *Delete* functionality
305
311
306
312
1. In the Visual Studio Code top menu select **Run \| Start debugging**, or select **F5**. After the project is finished building a browser window should launch with the web app running
0 commit comments