Skip to content

Commit

Permalink
Create HelloWorld.cs
Browse files Browse the repository at this point in the history
A class controller with one action, send hello world to Index view!
  • Loading branch information
rebwar authored Oct 2, 2019
1 parent 3525cd3 commit 77c21fa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/AspDotNetCore/HelloWorld.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
public class HomeController : Controller
{
public IActionResult Index()
{
string sayHello = "Hello World!";
return View(sayHello);
}
}

0 comments on commit 77c21fa

Please sign in to comment.