Posted on: 10/6/2014 8:21:23 PM | Views : 369

Hello,
I have two questions in reference to the Web API 2 tutorial on http://www.asp.net/web-api/overview/creating-web-apis/using-web-api-with-entity-framework/part-1 and the example code on https://github.com/MikeWasson/BookService.
It does show how you can create references in one direction. In this case the Book Model has properties named AuthorId and Author.
Question 1 is: Why do I need both? When are they used and what is each used for?
The example code however does not show how I can create a relationship in the other direction.
So question 2 is: When I call
GET /api/authors/5 for example, how do I get all the author's books as addition to the author's general informa ...

Go to the complete details ...