I have a single ApiController: recordsController and I have the basic 4 CRUD methods in it, I need to somehow have the ability for the user to do something like:
records/users - this is achieved by the default Get method records/users/Male records/users/White
I am brand new to webapi
This is the error I am getting trying to do: http://localhost/records/Male
The request is invalid. The parameters dictionary contains a null entry for parameter 'id' of non-nullable type 'System.Int32' for method 'System.String Get(Int32)' in 'RESTServices.Controllers.recordsController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.