Our updated QuizController
class gives us a way to retrieve a single Quiz entry; it will definitely be very useful when our users will select one of them within the Latest
list, as we'll be able to point them to something similar to a detail page. It will also be very useful when we'll have to deal with CRUD operations such as Delete
and Update
.
We're not dealing with the client-side code yet, so we don't know how we'll present such a scenario to the user. However, we already know what we'll eventually need, a Get
, Put
, Post
, and Delete
method for each one of our entries--Quizzes, Questions, Answers, and Results--as we'll definitely have to perform these operations for all of them.
Luckily enough, we don't need to implement them now. However, since we're working with these Controllers, it can be a good time to set up a basic interface:
#region RESTful conventions methods /// <summary> /// Retrieves the Answer with the given {id} /// </summary> /...