Skip to Content
Serverless computing in Azure with .NET
book

Serverless computing in Azure with .NET

by Sasha Rosenbaum
August 2017
Intermediate to advanced
468 pages
12h 5m
English
Packt Publishing
Content preview from Serverless computing in Azure with .NET

Creating the MVC view

Finally, we will create the MVC View to present the table with the text score results in the web UI by performing the following steps:

  1. To add the folder named Documents (corresponding to the controller named Documents), right-click on Views and navigate to New Folder… ->Documents.
  2. To add the Index view, right-click on Documents folder and navigate to Add -> New Item -> MVC View Page -> Index.cshtml.
  3. Modify the code to look like the following:
        @model IEnumerable<TextScoreDashboard.Models.DocumentTextScore>        @{            ViewBag.Title = "Document Scores";         }        <h2>Document Scores</h2>        <div class="main-content">            <table class="table">                <tr>                    <th>Document Name</th>                    <th>Date</th>                    <th>Score</th>               </tr>                @foreach (var item in Model)                { <tr> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Azure Serverless Computing

Mastering Azure Serverless Computing

Lorenzo Barbieri, Massimo Bonanni
Implementing Azure: Putting Modern DevOps to Use

Implementing Azure: Putting Modern DevOps to Use

Florian Klaffenbach, Oliver Michalski, Markus Klein, Mohamed Wali

Publisher Resources

ISBN: 9781787288393Supplemental Content