File tree Expand file tree Collapse file tree
Ignia.Topics.Web.Mvc/Controllers Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments