Razor and c# are server side. Ajax is client side.
I think the path of least resistance for someone from web forms is a set of tools like Telerik
public JsonResult MyEndpoint()
var myData =
You can get much more complex with ajax forms, etc... but I think that is the easiest way to explain it.