Compare commits

...

2 Commits

Author SHA1 Message Date
syneffort 40a39ab463 middleware 2 years ago
syneffort 92af8908db mvc intro 2 years ago
  1. 4
      BlazorApp/AspNetCoreMVC/Controllers/HomeController.cs
  2. 3
      BlazorApp/AspNetCoreMVC/Program.cs
  3. 1
      BlazorApp/AspNetCoreMVC/Views/Home/Privacy.cshtml
  4. 10
      BlazorApp/AspNetCoreMVC/wwwroot/Hello.html
  5. BIN
      BlazorApp/AspNetCoreMVC/wwwroot/testImage.jpg

@ -20,6 +20,10 @@ namespace AspNetCoreMVC.Controllers
public IActionResult Privacy() public IActionResult Privacy()
{ {
//int a = 1;
//int b = 3 / (a - 1);
ViewData["Message"] = "Data from privacy";
return View(); return View();
} }

@ -11,6 +11,9 @@ namespace AspNetCoreMVC
var app = builder.Build(); var app = builder.Build();
//app.UseStaticFiles();
//app.UseWelcomePage();
// Configure the HTTP request pipeline. // Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment()) if (!app.Environment.IsDevelopment())
{ {

@ -4,3 +4,4 @@
<h1>@ViewData["Title"]</h1> <h1>@ViewData["Title"]</h1>
<p>Use this page to detail your site's privacy policy.</p> <p>Use this page to detail your site's privacy policy.</p>
<p>This is from view data: @ViewData["Message"]</p>

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Loading…
Cancel
Save