[Application] refactored BlogController class by introducing a new BlogPostRepository object.