title: AmbiguousMatchException: The request matched multiple endpoints. Matches?
body: <p>I'm writing .Net Core WebAPI, here I'm writing Two HttpGet methods one is to fetch all records irrespective of params, and another one is with param(around 25 params), but I'm getting AmbigousMatchException error.</p>
  <p>How i can resolve this ?</p>
  <p><a href="https://i.stack.imgur.com/0nuN2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0nuN2.png" alt="enter image description here" /></a></p>
  <p>below is the code.</p>
  <pre><code>[Route(&quot;api/[controller]&quot;)]
  [ApiController]
  public class SummaryReportController : Controller
  {
      DataProvider dp = new DataProvider();
  
      private readonly IConfiguration _configuration;
      public SummaryReportController(IConfiguration configuration)
      {
          _configuration = configuration;
      }
  
      [HttpGet]
      public JsonResult GetSummaryReport()
      {
          dp.ConnectionString = _configuration.GetConnectionString(&quot;conAccounting_SQLWeb&quot;);
  
          DataSet ds = new DataSet();
          ds = dp.GetDataSetSProc(&quot;uspFreight_SearchFreight&quot;);
  
          DataTable dt = ds.Tables[0];
  
          return new JsonResult(dt);
      }
  
      [HttpGet]
      public JsonResult GetSummaryReportWithParams(SummaryReport sm)
      {
          dp.ConnectionString = _configuration.GetConnectionString(&quot;conAccounting_SQLWeb&quot;);
  
          DataSet ds = new DataSet();
          SqlParameter[] paramChk = new SqlParameter[21];
          paramChk[0] = new SqlParameter(&quot;@VendIDName&quot;, sm.VendID);
          paramChk[1] = new SqlParameter(&quot;@BOLNumber&quot;, sm.BOLNumber);
          paramChk[2] = new SqlParameter(&quot;@BOLWeightFrom&quot;, sm.BOLWeightFrom);
          paramChk[3] = new SqlParameter(&quot;@BOLWeightTo&quot;, sm.BOLWeightTo);
          paramChk[4] = new SqlParameter(&quot;@InvoiceAmtFrom&quot;, sm.InvoiceAmountFrom);
          paramChk[5] = new SqlParameter(&quot;@InvoiceAmtTo&quot;, sm.InvoiceAmountTo);
          paramChk[6] = new SqlParameter(&quot;@DistanceFrom&quot;, sm.DistanceFrom);
          paramChk[7] = new SqlParameter(&quot;@DistanceTo&quot;, sm.DistanceTo);
          paramChk[8] = new SqlParameter(&quot;@InvoiceDateFrom&quot;, sm.InvoiceDateFrom);
          paramChk[9] = new SqlParameter(&quot;@InvoiceDateTo&quot;, sm.InvoiceDateTo);
          paramChk[10] = new SqlParameter(&quot;@ShipmentDateFrom&quot;, sm.ShipmentDateFrom);
          paramChk[11] = new SqlParameter(&quot;@ShipmentDateTo&quot;, sm.ShipmentDateTo);
          paramChk[12] = new SqlParameter(&quot;@ShipperZip&quot;, sm.ShipperZip);
          paramChk[13] = new SqlParameter(&quot;@ConsigneeCityState&quot;, sm.ConsigneeCityState);
          paramChk[14] = new SqlParameter(&quot;@ConsigneeZip&quot;, sm.ConsigneeZip);
          paramChk[15] = new SqlParameter(&quot;@ConsigneeCode&quot;, sm.ConsigneeCode);
          paramChk[16] = new SqlParameter(&quot;@ConsigneeName&quot;, sm.ConsigneeName);
          paramChk[17] = new SqlParameter(&quot;@WhseID&quot;, sm.WhseID);
          paramChk[18] = new SqlParameter(&quot;@LTLFTL&quot;, sm.LTLFTL);
          paramChk[19] = new SqlParameter(&quot;@TRSO&quot;, sm.TRSO);
          paramChk[20] = new SqlParameter(&quot;@FTL&quot;, sm.FTL);
          ds = dp.GetDataSetSProcWithProc(&quot;uspFreight_SearchFreight&quot;, paramChk);
  
          DataTable dt = ds.Tables[0];
  
          return new JsonResult(dt);
      }
  
  }
  </code></pre>