My controller code is: [EnableQuery] public class LibWorkspacesController : ODataController {
[ODataRoute("LibWorkspaces(company={key})")]
public IHttpActionResult GetLibWorkspaces([FromODataUri] string company)
{
LibWorkspaces libWorkspaces = new LibWorkspaces();
return Ok(libWorkspaces.getList(company).AsQueryable());
}
There is a: builder.EntitySet("LibWorkspaces"); in the webapiconfig
But I am getting the error "The path template 'LibWorkspaces(company={key})' on the action 'GetLibWorkspaces' in controller 'LibWorkspaces' is not a valid OData path template"
What do I need to do to return a generic list for a parameter? Thanks in advance