Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Index.cshtml for Web App Calling Web API Scenario
ViewData["Title"] = "Home Page";
@using WebAPI;
@model List<WeatherForecast>
<div class="text-center">
<h1 class="display-4">Welcome</h1>
Learn about
<a href="">
building Web apps with ASP.NET Core
<table class="table">
@if (Model != null)
@foreach (var item in Model)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment