Skip to content

Commit afae3df

Browse files
author
kajan
committed
pass data from controller to view
1 parent 63ffaae commit afae3df

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

AspNetCoreVueMpa.Web/Controllers/HomeController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public HomeController(ILogger<HomeController> logger)
2020

2121
public IActionResult Index()
2222
{
23-
return View();
23+
var viewModel = new List<int>{1, 2, 3};
24+
return View(viewModel);
2425
}
2526

2627
public IActionResult Privacy()

0 commit comments

Comments
 (0)