C# Class Rebel.Cms.Web.Mvc.ViewEngines.AlternateViewEnginePathAttribute

An attribute for a controller that specifies that the ViewEngine should look for views for this controller using a different controllers name. This is useful if you want to share views between specific controllers but don't want to have to put all of the views into the Shared folder.
Inheritance: System.Attribute
Mostra file Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
AlternateViewEnginePathAttribute ( string altControllerName ) : System
AlternateViewEnginePathAttribute ( string altControllerName, string altAreaName ) : System

Method Details

AlternateViewEnginePathAttribute() public method

public AlternateViewEnginePathAttribute ( string altControllerName ) : System
altControllerName string
return System

AlternateViewEnginePathAttribute() public method

public AlternateViewEnginePathAttribute ( string altControllerName, string altAreaName ) : System
altControllerName string
altAreaName string
return System