Click here to Skip to main content
15,887,434 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Team,
I am using Odata in our application due to that i am not able to call web api methods in Postman or web browser
Could you please suggest how to create web api methods same as normal web api methods
[EnableQuery]
public IHttpActionResult  GetProductDetails([FromoDataUri]string productid)
{
    item = repository.Add(productid);
    //ToDo....
}


What I have tried:

I tried with this
public IHttpActionResult  GetProductDetails([FromUri]string productid)
{
    item = repository.Add(productid);
    //ToDo....
}



But getting no non oData registered exception getting
Posted
Comments
0x01AA 12-Aug-22 15:14pm    
.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900