Skip to content

Commit dcfe688

Browse files
committed
Updated with layout page
1 parent 0cfde41 commit dcfe688

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

MVC_Start/Controllers/HomeController.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,10 @@ public IActionResult Index()
1313
{
1414
return View();
1515
}
16+
17+
public IActionResult IndexWithLayout()
18+
{
19+
return View();
20+
}
1621
}
1722
}

MVC_Start/MVC_Start.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
<ItemGroup>
1313
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.5" />
14+
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.0.2" />
1415
</ItemGroup>
1516

1617
</Project>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
@{
3+
ViewData["Title"] = "IndexWithLayout";
4+
}
5+
6+
<h2>Index With Layout</h2>
7+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
@using MVC_Start
22
@using MVC_Start.Models
3+
34
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

0 commit comments

Comments
 (0)