So I am new to ASP.NET webAPI and I created a controller called: UsersController, which exposes the 4 CRUD methods. If the user calls:
GET/Users
this will use the default Get method
public IEnumerable Get()
if the user calls:
GET /users/1234
this in turn will call:
public string Get(int id)
BUT... what if I need something like:
GET / Users/Males
- I want to return all male users and
GET /Users/Tall
- I want to return all Tall users
how do I override/overload the GET method ?