August 2017
Intermediate to advanced
330 pages
7h 26m
English
The StoreController class is injected with the IStoreManager interface as a dependency in its constructor:

Now for Get on our controller, we are going to refactor it, so don't be too concerned about the implementation:

Take note of the route; we are using ID, and our ID is Guid, which is our unique identifier. Then, we have storemanager, and we pass the ID to our store manager and get back a model, which is returned from the controller.
Pretty easy; what does this look like in an actual call, and how do we call it?
I have created ...