title: How to consume Odata service method in c# or in jquery
body: <p>I have to consume a method defined in the Odata Service. I am very new to OData service and really do not know how to consume it. Below is the method which is defined in the Odata service.</p>
  
  <pre><code>[HttpPost, ActionName("GetEmpsByPinAndCityName")]
  [EnableQuery]
  public IHttpActionResult GetEmpsByPinAndCityName(int pincode, string cityName)
  {
      var result = this.context.EmpSets.Where(x =&gt; x.PinCode == pincode &amp; x.CityName == cityName).ToList();
      return result;
  }
  </code></pre>
  
  <p>So can anyone please explain how I can consume it in C# or in Jquery.</p>
  
  <p>Thanks a lot</p>