Creating the master layout
You've added the CSS and JavaScript files needed to create the master layout file for your project. Next, you need to create a home controller as well as a master layout file. To do this, complete the following steps:
Add a new empty controller called
HomeController
to theControllers
folder by right-clicking on it and selecting Add | New Item....Select MVC Controllers Class from the list of project items and click on the Add button.
Next, right-click on the
Views
folder in your project and navigate to Add | New Folder. Name the folderShared
.Right-click on the newly created
Shared
folder and navigate to Add | New Item...Select MVC View Layout Page in the list of project items and keep the name of the file as
_Layout.cshtml
and click on Add.Open the
index.html
file in the Bootstrap 4 Admin Dashboard template source files and copy its contents to the_Layout.cshtml
file.Change the
<head>
tag to reference thestyles.css
folder in the correct folder, as illustrated...