MVC
Model-View-Controller
Last updated
Model-View-Controller
Last updated
<form asp-action="Create" asp-controller="Home">
//asp-action: tells the razor what controller action we want to use
//asp-controller: is used to let our form know which controller to the find the action in
//without asp-controller, MVC will use the controller that matches the view's directory@{
for (int counter = 1; counter <= 5; counter++)
{
<div>@counter</div>
}
}