I created an ASP.NET Core 6 MVC web application, code in `Index.cshtml`:

```
<button onclick="Get()">Send</button>

<script>
    function Get(){
         var results = new Array();

         var emp1 = { "ID": "12", "Name": "Manas" };
         var emp2 = { "ID": "2", "Name": "Tester" };
         results.push(emp1);
         results.push(emp2);

         console.log(results);

         $.ajax({
             url: 'Home/GetQuiz',
             data: JSON.stringify(results),
             type: 'POST',
             contentType: "application/json",
             dataType: 'json',
             success: function (resp) {
                 //request sent and response received.
             }
         });
    }
</script>

```

HomeController:

```
[HttpPost]
public IActionResult GetQuiz(List<Employee> empList)
{
    return RedirectToAction("Index","Home");
}

```

I get into the action of the controller, but the list is empty, please tell me why?

In the layout page, the link to the library is connected:

```
<script src="~/lib/jquery/dist/jquery.min.js"></script>

```