Skip to content

Commit afae3df

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

AspNetCoreVueMpa.Web/Controllers/HomeController.cs

+2-1
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)