title: MVC controller method is not being called from ajax
body: <p>MVC controller method is not being called from the ajax i have declared. PFB the code snippet
  C# Controller:</p>
  
  <pre><code>public ActionResult Checkfunction(string ReqID, string AssociateId, string AssetId)
  {
        MyDetails obj = new MyDetails();
        List&lt;string&gt; Lst = new List&lt;string&gt;();
        Lst = obj.Check(AssociateId, AssetId, ReqID);
        return this.Json(Lst, "text/json");
  }
  </code></pre>
  
  <p>Javascript code (ajax call): refering details controller, and webmethod Checkfunction</p>
  
  <pre><code>$.ajax({
      type: 'GET',
      cache: false,
      url: '@Url.Action("Details/Checkfunction")',
      data: { 'ReqID': RequestId, 'AssociateId': AssociateID, 'AssetId': Host_Name },
      contentType: "application/json",
      success: function (data) {
          debugger;
          if (data.length &gt; 0) {
  
                  ViewModel.REQUESTID() = data[0];
                  ViewModel.FLAG() = '1';
          }
          else {
              debugger;
              ViewModel.FLAG() = '0';
              ViewModel.REQUESTID() = '';
          }
  
          if (ViewModel.REQUESTID() != '' || ViewModel.REQUESTID() != null) {
              debugger;
              ViewModel.REQID() = RequestId;
          }
      },
  
      error: function (error) {
          alert("error");
      }
  });
  </code></pre>