main
syneffort 2 years ago
parent 92af8908db
commit 40a39ab463
  1. 3
      BlazorApp/AspNetCoreMVC/Controllers/HomeController.cs
  2. 3
      BlazorApp/AspNetCoreMVC/Program.cs
  3. 10
      BlazorApp/AspNetCoreMVC/wwwroot/Hello.html
  4. BIN
      BlazorApp/AspNetCoreMVC/wwwroot/testImage.jpg

@ -20,6 +20,9 @@ namespace AspNetCoreMVC.Controllers
public IActionResult Privacy() public IActionResult Privacy()
{ {
//int a = 1;
//int b = 3 / (a - 1);
ViewData["Message"] = "Data from privacy"; 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())
{ {

@ -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