My team and I are currently working on a .NET MVC project in Visual Studio, where we frequently need to invoke controller or model functions from JavaScript files. An example of this is:
$.ajax({
"dataType": 'json',
"type": "POST",
"url": "/Lookup/CreateLeadForEmployee"
We face a challenge when it comes to renaming these functions or locating references to them. The process is manual, and we often miss certain references, leading to errors. We are curious if there is a tool, package, add-on, or code syntax that can help Visual Studio recognize these function invocations as specific C# functions. In essence, we want to be able to right-click on a function like CreateLeadForEmployee
in Visual Studio, choose "Find all references," and have it include references made from JavaScript files. Is there a solution for this?