The comments list feature could be added to the system by performing the following steps:
- Inject the IConfigurationRoot from the Startup file.
- Add Execute methods in the ICommentRepository interface.
- Add Execute methods in the CommentRepository concrete type.
- Create a query object interface, ICreateCommentCommand.
- Create a concrete query object, CreateCommentCommand.
- Inject ICommentRepository and IConfigurationRoot in the comments controller.
- Create a View model, CommentViewModel.
- Create an action to add comments anonymously, CreatePostComment(), to a blog post.
- Create an action to display or add comments to the View component anonymously, GetCommentsListViewComponent().
- Create a ...