Changing the application home page

Now that we have the MVC controller and view ready to load the database content, we need to change the application landing page, and its main layout from the generic template code generated by Visual Studio, to our TextScoreDashboard application code.

All we want on the application landing page right now is a link to the Documents view, where we can browse the text scores.

Let's see how we can change the application home page by performing the following steps:

  1. To modify the landing page, navigate to Views -> Home -> Index.
  2. Replace the existing code with the following:
        @{            ViewData["Title"] = "Home Page";        }        <h2>Text Sentiment Scores Dashboard</h2>        <div class="main-content">            <ul>                <li> @Html.ActionLink("Document ...

Get Serverless computing in Azure with .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.