C# Class cloudscribe.Web.Common.Extensions.ControllerExtensions

to use extensions from inside a controller you have to use the this keyword to call the extension method http://stackoverflow.com/questions/12105869/controller-extension-method-without-this
ファイルを表示 Open project: joeaudette/cloudscribe

Public Methods

Method Description
AddAlerts ( this tempData, List alerts ) : void
AlertDanger ( this controller, string message, bool dismissable = false ) : void
AlertInformation ( this controller, string message, bool dismissable = false ) : void
AlertSuccess ( this controller, string message, bool dismissable = true ) : void
AlertWarning ( this controller, string message, bool dismissable = false ) : void
GetAlerts ( this tempData ) : List
SessionIsAvailable ( this controller ) : bool
ValidateRecaptcha ( this controller, HttpRequest request, string secretKey ) : Task

Private Methods

Method Description
AddAlert ( this controller, string alertStyle, string message, bool dismissable ) : void

Method Details

AddAlerts() public static method

public static AddAlerts ( this tempData, List alerts ) : void
tempData this
alerts List
return void

AlertDanger() public static method

public static AlertDanger ( this controller, string message, bool dismissable = false ) : void
controller this
message string
dismissable bool
return void

AlertInformation() public static method

public static AlertInformation ( this controller, string message, bool dismissable = false ) : void
controller this
message string
dismissable bool
return void

AlertSuccess() public static method

public static AlertSuccess ( this controller, string message, bool dismissable = true ) : void
controller this
message string
dismissable bool
return void

AlertWarning() public static method

public static AlertWarning ( this controller, string message, bool dismissable = false ) : void
controller this
message string
dismissable bool
return void

GetAlerts() public static method

public static GetAlerts ( this tempData ) : List
tempData this
return List

SessionIsAvailable() public static method

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

ValidateRecaptcha() public static method

public static ValidateRecaptcha ( this controller, HttpRequest request, string secretKey ) : Task
controller this
request HttpRequest
secretKey string
return Task