@* VSRD: No foreach live template here, just keyword completion like in Visual Studio *@
@@ -29,5 +27,7 @@
Add Restaurant
-
-
+@section footer
+{
+ @Model.CurrentMessage
+}
diff --git a/OdeToFoodRider/OdeToFoodRider/Views/Shared/_Layout.cshtml b/OdeToFoodRider/OdeToFoodRider/Views/Shared/_Layout.cshtml
new file mode 100644
index 0000000..0236aa5
--- /dev/null
+++ b/OdeToFoodRider/OdeToFoodRider/Views/Shared/_Layout.cshtml
@@ -0,0 +1,13 @@
+
+
+
+
+ @ViewBag.Title
+
+
+
+ @RenderBody()
+
+
+
+
\ No newline at end of file
diff --git a/OdeToFoodVisualStudio/OdeToFoodVisualStudio/Views/Home/Index.cshtml b/OdeToFoodVisualStudio/OdeToFoodVisualStudio/Views/Home/Index.cshtml
index a387f7b..1b9939f 100644
--- a/OdeToFoodVisualStudio/OdeToFoodVisualStudio/Views/Home/Index.cshtml
+++ b/OdeToFoodVisualStudio/OdeToFoodVisualStudio/Views/Home/Index.cshtml
@@ -1,29 +1,29 @@
@* VSRD: Visual Studio doesn't suggest importing the Restaurant model when typing @model Restaurant, so you have to type in the FQN. Let's see what Rider can do here :) *@
@model OdeToFoodVisualStudio.ViewModels.HomeIndexViewModel
-
-
-
-
-
+@{ ViewBag.Title = "Home page";
+ Layout = "~/Views/Shared/_Layout.cshtml";
+}
-
@Model.CurrentMessage
- @* VSRD: Table generated in VS with a "table" code snippet *@
-
- @* VSRD: No 'foreach' code snippet in VS, just keyword completion *@
- @foreach (var restaurant in Model.Restaurants)
- {
-
-
@restaurant.Id
-
@restaurant.Name
-
- Details
- @Html.ActionLink("Go", "Details", new { id = restaurant.Id })
- More
-