C# Class Rebel.Cms.Web.ViewContextExtensions

Mostra file Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
CopyWithModel ( this vc, object model ) : System.Web.Mvc.ViewContext

Creates a new ViewContext from an existing one but specifies a new Model for the ViewData

Method Details

CopyWithModel() public static method

Creates a new ViewContext from an existing one but specifies a new Model for the ViewData
public static CopyWithModel ( this vc, object model ) : System.Web.Mvc.ViewContext
vc this
model object
return System.Web.Mvc.ViewContext