I have a small code that works in _Layout :
$.ajax({
type: "POST",
url: "@Url.Action("Action", "Controller")",
success: function () {
//Seu código aqui ...
}
});
So far everything works fine, but _Layout is getting too big. so I want to add a javascript file and add it to _Layout .
Only the problem is javascript file. It does not recognize ' @ '.
How can I resolve this?