C# Class Common.Controller.ControllerExtentions

显示文件 Open project: rabbal/Mvc5

Public Methods

Method 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

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

Method Details

GetListOfErrors() public static method

public static GetListOfErrors ( this modelState ) : string
modelState this
return string

GetUserManagerErros() public static method

public static GetUserManagerErros ( this errors ) : string
errors this
return string

IsEmbeddedIntoAnotherDomain() public static method

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

NotyAlert() public static method

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

NotyError() public static method

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

NotyInformation() public static method

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

NotySuccess() public static method

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

NotySuccessModal() public static method

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

NotyWarning() public static method

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

RenderPartialViewToString() public static method

Render partial view to string
public static RenderPartialViewToString ( this controller ) : string
controller this
return string

RenderPartialViewToString() public static method

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

RenderPartialViewToString() public static method

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

RenderPartialViewToString() public static method

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

RenderViewToString() public static method

Render view to string
public static RenderViewToString ( this controller ) : string
controller this
return string

RenderViewToString() public static method

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

RenderViewToString() public static method

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

RenderViewToString() public static method

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

RenderViewToString() public static method

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
return string