How to call action method on selection of dropdown using razor view
<pre><code>&lt;select id="TypeOfUser" name="typeOfUser" class="active text-normal"&gt;
     &lt;option value="2" onclick="location.href='@(Url.Action("Index", "User", new { typeOfUser = 2}))'"&gt;CMS Users&lt;/option&gt;
     &lt;option value="3" onclick="location.href='@(Url.Action("Index", "User", new { typeOfUser = 3}))'"&gt;Site Users&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>on selection of dropdown item I want to call my action method with selected value-</p>

<pre><code>public async Task&lt;IActionResult&gt; Index([FromQuery] int typeOfUser = 2)
{
   SearchUsersResponse searchUserResponse = await new SearchUsersHandler(_db).Handle(new SearchUsersCommandAsync
   {
       Type = typeOfUser
   });

   return View("Index", searchUserResponse);
}
</code></pre>

<p>Currently on dropdown selection change I am not able to call action method. </p>