C# Class MVC5.Common.Controller.ControllerExtentions

显示文件 Open project: rabbal/AspNetMVCNTierTemp

Public Methods

Method Description
AddBootstrapAlert ( this controller, BootstrapMessage message ) : void
AddToastrAlert ( this controller, ToastMessage message ) : void
GetListOfErrors ( this modelState ) : string
GetUserManagerErros ( this errors ) : string
IsEmbeddedIntoAnotherDomain ( this controller ) : bool
RenderPartialViewToString ( this controller ) : string

Render partial view to string

RenderPartialViewToString ( this controller, object model ) : string

Render partial view to string

RenderPartialViewToString ( this controller, string viewName ) : string

Render partial view to string

RenderPartialViewToString ( this controller, string viewName, object model ) : string

Render partial view to string

RenderViewToString ( this controller ) : string

Render view to string

RenderViewToString ( this controller, object model ) : string

Render view to string

RenderViewToString ( this controller, string viewName ) : string

Render view to string

RenderViewToString ( this controller, string viewName, string masterName ) : string

Render view to string

RenderViewToString ( this controller, string viewName, string masterName, object model ) : string

Render view to string

Private Methods

Method Description
ThrowIfViewNotFound ( System.Web.Mvc.ViewEngineResult viewResult, string viewName ) : void

Method Details

AddBootstrapAlert() public static method

public static AddBootstrapAlert ( this controller, BootstrapMessage message ) : void
controller this
message MVC5.Common.Controller.Alerts.BootstrapMessage
return void

AddToastrAlert() public static method

public static AddToastrAlert ( this controller, ToastMessage message ) : void
controller this
message MVC5.Common.Controller.Alerts.ToastMessage
return void

GetListOfErrors() public static method

public static GetListOfErrors ( this modelState ) : string
modelState this
return string

GetUserManagerErros() public static method

public static GetUserManagerErros ( this errors ) : string
errors this
return string

IsEmbeddedIntoAnotherDomain() public static method

public static IsEmbeddedIntoAnotherDomain ( this controller ) : bool
controller this
return bool

RenderPartialViewToString() public static method

Render partial view to string
public static RenderPartialViewToString ( this controller ) : string
controller this
return string

RenderPartialViewToString() public static method

Render partial view to string
public static RenderPartialViewToString ( this controller, object model ) : string
controller this
model object Model
return string

RenderPartialViewToString() public static method

Render partial view to string
public static RenderPartialViewToString ( this controller, string viewName ) : string
controller this
viewName string View name
return string

RenderPartialViewToString() public static method

Render partial view to string
public static RenderPartialViewToString ( this controller, string viewName, object model ) : string
controller this
viewName string View name
model object Model
return string

RenderViewToString() public static method

Render view to string
public static RenderViewToString ( this controller ) : string
controller this
return string

RenderViewToString() public static method

Render view to string
public static RenderViewToString ( this controller, object model ) : string
controller this
model object Model
return string

RenderViewToString() public static method

Render view to string
public static RenderViewToString ( this controller, string viewName ) : string
controller this
viewName string View name
return string

RenderViewToString() public static method

Render view to string
public static RenderViewToString ( this controller, string viewName, string masterName ) : string
controller this
viewName string View name
masterName string
return string

RenderViewToString() public static method

Render view to string
public static RenderViewToString ( this controller, string viewName, string masterName, object model ) : string
controller this
viewName string View name
masterName string Master name
model object Model
return string