C# Class StarterTemplate.Controllers.ApplicationControllerBase

Inheritance: Controller
Exibir arquivo Open project: mccalltd/MvcStarterTemplate

Protected Methods

Method Description
HandleException ( Exception ex ) : bool
JsonFailure ( ) : System.Web.Mvc.JsonResult
JsonHtml ( string viewName = null, object model = null ) : System.Web.Mvc.JsonResult
JsonRedirect ( string redirectUrl ) : System.Web.Mvc.JsonResult
JsonSuccess ( object model = null ) : System.Web.Mvc.JsonResult
RenderPartialViewToString ( string viewName = null, object model = null ) : string
Try ( System.Action action ) : bool

Method Details

HandleException() protected method

protected HandleException ( Exception ex ) : bool
ex System.Exception
return bool

JsonFailure() protected method

protected JsonFailure ( ) : System.Web.Mvc.JsonResult
return System.Web.Mvc.JsonResult

JsonHtml() protected method

protected JsonHtml ( string viewName = null, object model = null ) : System.Web.Mvc.JsonResult
viewName string
model object
return System.Web.Mvc.JsonResult

JsonRedirect() protected method

protected JsonRedirect ( string redirectUrl ) : System.Web.Mvc.JsonResult
redirectUrl string
return System.Web.Mvc.JsonResult

JsonSuccess() protected method

protected JsonSuccess ( object model = null ) : System.Web.Mvc.JsonResult
model object
return System.Web.Mvc.JsonResult

RenderPartialViewToString() protected method

protected RenderPartialViewToString ( string viewName = null, object model = null ) : string
viewName string
model object
return string

Try() protected method

protected Try ( System.Action action ) : bool
action System.Action
return bool