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
Afficher le fichier Open project: joeaudette/cloudscribe

Méthodes publiques

Méthode 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

Méthode Description
AddAlert ( this controller, string alertStyle, string message, bool dismissable ) : void

Method Details

AddAlerts() public static méthode

public static AddAlerts ( this tempData, List alerts ) : void
tempData this
alerts List
Résultat void

AlertDanger() public static méthode

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

AlertInformation() public static méthode

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

AlertSuccess() public static méthode

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

AlertWarning() public static méthode

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

GetAlerts() public static méthode

public static GetAlerts ( this tempData ) : List
tempData this
Résultat List

SessionIsAvailable() public static méthode

public static SessionIsAvailable ( this controller ) : bool
controller this
Résultat bool

ValidateRecaptcha() public static méthode

public static ValidateRecaptcha ( this controller, HttpRequest request, string secretKey ) : Task
controller this
request HttpRequest
secretKey string
Résultat Task