Skip to content

Commit ec56af6

Browse files
committed
Marked actions as virtual
This will allow them to be overwritten by implementing libraries, which is appropriate since these are intended as baseline implementations.
1 parent 9390bc1 commit ec56af6

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

Ignia.Topics.Web.Mvc/Controllers/ErrorController.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Ignia.Topics.Web.Mvc.Controllers {
2626
/// Provides the default custom error page for the site.
2727
/// </summary>
2828
/// <returns>The site's default error view.</returns>
29-
public ActionResult Error(string title = "General Error") {
29+
public virtual ActionResult Error(string title = "General Error") {
3030

3131
/*------------------------------------------------------------------------------------------------------------------------
3232
| Instantiate view model
@@ -53,7 +53,7 @@ public ActionResult Error(string title = "General Error") {
5353
/// Provides the custom 404 error page for the site.
5454
/// </summary>
5555
/// <returns>The site's 404 (not found) error view.</returns>
56-
public ActionResult NotFound(string title = "Page Not Found") {
56+
public virtual ActionResult NotFound(string title = "Page Not Found") {
5757

5858
/*------------------------------------------------------------------------------------------------------------------------
5959
| Return the proper status code
@@ -85,7 +85,7 @@ public ActionResult NotFound(string title = "Page Not Found") {
8585
/// Provides the custom 500 error page for the site.
8686
/// </summary>
8787
/// <returns>The site's 500 (internal server) error view.</returns>
88-
public ActionResult InternalServer(string title = "Internal Server Error") {
88+
public virtual ActionResult InternalServer(string title = "Internal Server Error") {
8989

9090
/*------------------------------------------------------------------------------------------------------------------------
9191
| Return the proper status code

Ignia.Topics.Web.Mvc/Controllers/FallbackController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public FallbackController() : base() {
3838
/// Provides the default page for the site.
3939
/// </summary>
4040
/// <returns>The site's default view.</returns>
41-
public ActionResult Index() => HttpNotFound("No controller available to handle this request.");
41+
public virtual ActionResult Index() => HttpNotFound("No controller available to handle this request.");
4242

4343
} //Class
4444

Ignia.Topics.Web.Mvc/Controllers/RedirectController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public RedirectController(ITopicRepository topicRepository) : base() {
4949
/// Redirect based on TopicID
5050
/// </summary>
5151
/// <param name="topicId">The <see cref="Topic.Id"/> to lookup in the <see cref="ITopicRepository"/>.</param>
52-
public ActionResult TopicRedirect(int topicId) {
52+
public virtual ActionResult TopicRedirect(int topicId) {
5353

5454
/*------------------------------------------------------------------------------------------------------------------------
5555
| Find the topic with the correct PageID.

Ignia.Topics.Web.Mvc/Controllers/SitemapController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public SitemapController(ITopicRepository topicRepository) {
4343
/// Provides the Sitemap.org sitemap for the site.
4444
/// </summary>
4545
/// <returns>The site's homepage view.</returns>
46-
public ActionResult Index() {
46+
public virtual ActionResult Index() {
4747

4848
/*------------------------------------------------------------------------------------------------------------------------
4949
| Establish Page Topic

Ignia.Topics.Web.Mvc/Controllers/TopicController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected Topic CurrentTopic {
100100
/// query string or topic's view.
101101
/// </summary>
102102
/// <returns>A view associated with the requested topic's Content Type and view.</returns>
103-
public ActionResult Index(string path) {
103+
public virtual ActionResult Index(string path) {
104104

105105
/*------------------------------------------------------------------------------------------------------------------------
106106
| Establish default view model

0 commit comments

Comments
 (0)