C# Класс 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
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
AddAlert ( this controller, string alertStyle, string message, bool dismissable ) : void

Описание методов

AddAlerts() публичный статический Метод

public static AddAlerts ( this tempData, List alerts ) : void
tempData this
alerts List
Результат void

AlertDanger() публичный статический Метод

public static AlertDanger ( this controller, string message, bool dismissable = false ) : void
controller this
message string
dismissable bool
Результат void

AlertInformation() публичный статический Метод

public static AlertInformation ( this controller, string message, bool dismissable = false ) : void
controller this
message string
dismissable bool
Результат void

AlertSuccess() публичный статический Метод

public static AlertSuccess ( this controller, string message, bool dismissable = true ) : void
controller this
message string
dismissable bool
Результат void

AlertWarning() публичный статический Метод

public static AlertWarning ( this controller, string message, bool dismissable = false ) : void
controller this
message string
dismissable bool
Результат void

GetAlerts() публичный статический Метод

public static GetAlerts ( this tempData ) : List
tempData this
Результат List

SessionIsAvailable() публичный статический Метод

public static SessionIsAvailable ( this controller ) : bool
controller this
Результат bool

ValidateRecaptcha() публичный статический Метод

public static ValidateRecaptcha ( this controller, HttpRequest request, string secretKey ) : Task
controller this
request HttpRequest
secretKey string
Результат Task