title: A 404 not found error in ajax Get request for a class library project
body: <p>I am making a simple <strong>class library</strong> project where i make an <strong>AJAX</strong> Get Request in HTML file to Get Data from server ( returned in a method inside a c# class ) .</p>
  
  <p><strong>HTML script field where the AJAX call</strong> : </p>
  
  <pre><code>$( function () {
  
      $('#btnSend').click(function () {
  
          $.ajax({
  
              type: "GET",
              url: "./Employee/Getdata",
              data: {},
              contentType: "application/json; charset=utf-8",
              dataType: "json",
  
              success: function (response) {
  
                  console.log(response);
  
              },
  
              failure: function (jqXHR, textStatus, errorThrown) {
                  alert("HTTP Status: " + jqXHR.status + "; Error Text: " + jqXHR.responseText); // Display error message  
              }
  
          })
  
      })
  });
  </code></pre>
  
  <p><strong>C# called class  :</strong> </p>
  
  <pre><code>using System; 
  using System.Collections.Generic; 
  
  public class Employee 
  {
  
      public int ID { get; set; }
      public string Name { get; set; }
  
  
      public List&lt;Employee&gt; GetData()
      {
          var empList = new List&lt;Employee&gt;()
          {
              new Employee { ID=1, Name="Hamdi"},
              new Employee { ID=2, Name="Tester"}
          };
          return empList ;
      } 
  
  }
  </code></pre>
  
  <p>The problem is that a <strong>404 NOT found</strong> error is shown in console tells me the Url is wrong, Although it works fine in <strong>MVC</strong> project with the same url, in the case this class follows the path: <strong>Controllers/HomeController/Employee.cs</strong></p>
  
  <p>I searched a lot but all examples are <strong>MVC</strong> or <strong>webforms</strong> projects, which are not my case,  What can be the right URL then?</p>