I'm creating an api using Asp.net web api. I have controller BookController
with two methods:
GetBook(int id)
which returns book with given id andGetBook(int userId)
which returns all books of given user
If I call localhost/book/3
there is ambiguity in which method to call.How can I differentiate the two methods?