Ajax call doesn't pass string to controller – Jquery ajax
I am trying to pass a string to an IActionResult function in an asp.net core 3.1 controller. Ajax: $(function () { $('#ddlUsers').change(function () { $.ajax({ url: '@Url.Action("GetUserInfoPartial", "UserInfo")', method: 'POST', data: { userId: 'test' }, contentType: 'application/json', dataType: 'html' }).done(function…