You are on page 1of 1

como acceder a un metodo en el controller:

@section scripts{

<script>

jQuery.ajax({
url: '@Url.Action("ListarUsuarios","Home")',
type: "GET",
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (data) {
debugger;
var texto1 = "hola xd texto1";
console.log(data)
}
})

</script>

You might also like