An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Use a nullable type for each input parameter and use a unique route.
[HttpGet("getbyOrgIdandDealerId")]
public IActionResult Get(int? OrgId, int? DealerId)
{
return Ok(new { orgId = OrgId, dealerId = DealerId });
}
URLs
https://localhost:44352/api/valuesgetbyOrgIdandDealerId?OrgId=1&DealerId=2
https://localhost:44352/api/values/getbyOrgIdandDealerId