Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
pass data from controller to view
  • Loading branch information
kajan committed Feb 18, 2021
1 parent 63ffaae commit afae3df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AspNetCoreVueMpa.Web/Controllers/HomeController.cs
Expand Up @@ -20,7 +20,8 @@ public HomeController(ILogger<HomeController> logger)

public IActionResult Index()
{
return View();
var viewModel = new List<int>{1, 2, 3};
return View(viewModel);
}

public IActionResult Privacy()
Expand Down

0 comments on commit afae3df

Please sign in to comment.