To illustrate the transactions between multiple technologies, let's implement a few of the missing features in the blogging system. In that way, we will have a mature, deployable blogging system towards the end of the book, and at the same time we will learn the concepts along the way. The features that we could consider for this section are:
- Recent
Posts
(anonymous) Post
View
(anonymous)- Comments list to a blog post
- Adding comments to a blog post
Let's see how we will be using these features in the current section.
The recent posts feature could be added to the system by performing the following steps:
- Create an
IGetRecentPostQuery
query object interface. - Create a
GetRecentPostQuery
concrete query object. - Create a
RecentPostsViewComponent
View
component. - Create a
Default.cshtml
view underShared
|Components
|RecentPosts.
- Perform a component invoke using the
View
component name and its parameter.
To reduce...