how can i call web api Controller from ajax
问题 I am a beginner of ASP MVC with web api. By using below codes I tried to call a function which is written at the controller. For checking I used breakpoint so the control could not go to the controller so that I can not track actually what is going on. The given code explains how to pass username and password to the controller: <script type="text/javascript"> function Login() { var Login = {}; Login.username = document.getElementById("txtUserName").value; Login.password = document