How to call a C# static method from Jquery : I've seen some articles showing how to call a C# method from Javascript using Microsoft's [WebMethod] for a Web Forms application. I'd like to do the same with an MVC application.  I have a C# static method that returns translated data:

    public static string Translate(string word) 
    {
      return langRepo.Translate(word);
    }

The above function works fine inside server-side code. However, I'd like to extend the same code to the client side. Ideally I would like to create a JQuery function like this:

    function Translate(word) {
      //call C# translate method and return result
    }

And use it like this:

    "<hr /><h5>" + Translate(heading) + "</h5>";

How would I do this?