C# Класс Common.Controller.ControllerExtentions

Показать файл Открыть проект

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

Метод Описание
GetListOfErrors ( this modelState ) : string
GetUserManagerErros ( this errors ) : string
IsEmbeddedIntoAnotherDomain ( this controller ) : bool
NotyAlert ( this controller, string message, bool isSticky = false ) : void
NotyError ( this controller, string message, bool isSticky = false ) : void
NotyInformation ( this controller, string message, bool isSticky = false ) : void
NotySuccess ( this controller, string message, bool isSticky = false ) : void
NotySuccessModal ( this controller, string message, bool isSticky = false, MessageLocation location = MessageLocation.center ) : void
NotyWarning ( this controller, string message, bool isSticky = false ) : void
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

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

Метод Описание
AddNotyAlert ( this controller, NotyMessage message ) : void
ThrowIfViewNotFound ( System.Web.Mvc.ViewEngineResult viewResult, string viewName ) : void

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

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

public static GetListOfErrors ( this modelState ) : string
modelState this
Результат string

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

public static GetUserManagerErros ( this errors ) : string
errors this
Результат string

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

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

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

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

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

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

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

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

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

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

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

public static NotySuccessModal ( this controller, string message, bool isSticky = false, MessageLocation location = MessageLocation.center ) : void
controller this
message string
isSticky bool
location MessageLocation
Результат void

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

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

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

Render partial view to string
public static RenderPartialViewToString ( this controller ) : string
controller this
Результат string

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

Render partial view to string
public static RenderPartialViewToString ( this controller, object model ) : string
controller this
model object Model
Результат string

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

Render partial view to string
public static RenderPartialViewToString ( this controller, string viewName ) : string
controller this
viewName string View name
Результат string

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

Render partial view to string
public static RenderPartialViewToString ( this controller, string viewName, object model ) : string
controller this
viewName string View name
model object Model
Результат string

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

Render view to string
public static RenderViewToString ( this controller ) : string
controller this
Результат string

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

Render view to string
public static RenderViewToString ( this controller, object model ) : string
controller this
model object Model
Результат string

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

Render view to string
public static RenderViewToString ( this controller, string viewName ) : string
controller this
viewName string View name
Результат string

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

Render view to string
public static RenderViewToString ( this controller, string viewName, string masterName ) : string
controller this
viewName string View name
masterName string
Результат string

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

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
Результат string