C# Class Common.Controller.ControllerExtentions

Afficher le fichier Open project: rabbal/Mvc5

Méthodes publiques

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

Private Methods

Méthode Description
AddNotyAlert ( this controller, NotyMessage message ) : void
ThrowIfViewNotFound ( System.Web.Mvc.ViewEngineResult viewResult, string viewName ) : void

Method Details

GetListOfErrors() public static méthode

public static GetListOfErrors ( this modelState ) : string
modelState this
Résultat string

GetUserManagerErros() public static méthode

public static GetUserManagerErros ( this errors ) : string
errors this
Résultat string

IsEmbeddedIntoAnotherDomain() public static méthode

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

NotyAlert() public static méthode

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

NotyError() public static méthode

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

NotyInformation() public static méthode

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

NotySuccess() public static méthode

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

NotySuccessModal() public static méthode

public static NotySuccessModal ( this controller, string message, bool isSticky = false, MessageLocation location = MessageLocation.center ) : void
controller this
message string
isSticky bool
location MessageLocation
Résultat void

NotyWarning() public static méthode

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

RenderPartialViewToString() public static méthode

Render partial view to string
public static RenderPartialViewToString ( this controller ) : string
controller this
Résultat string

RenderPartialViewToString() public static méthode

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

RenderPartialViewToString() public static méthode

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

RenderPartialViewToString() public static méthode

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

RenderViewToString() public static méthode

Render view to string
public static RenderViewToString ( this controller ) : string
controller this
Résultat string

RenderViewToString() public static méthode

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

RenderViewToString() public static méthode

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

RenderViewToString() public static méthode

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

RenderViewToString() public static méthode

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
Résultat string