C# Class Mvc.Extensions.MvcExtensions

Exibir arquivo Open project: benjaminkeeping/Mvc.Extensions

Public Methods

Method Description
AddErrors ( this modelState, IEnumerable errors ) : void
WithCookie ( this result, string cookieName, string cookieValue ) : System.Web.Mvc.ActionResult
WithFlash ( this result, Controller controller, string message ) : System.Web.Mvc.ActionResult
WithModelErrors ( this result, ModelStateDictionary modelState, IEnumerable errors ) : System.Web.Mvc.ActionResult
WithNoCache ( this result ) : System.Web.Mvc.ActionResult

Method Details

AddErrors() public static method

public static AddErrors ( this modelState, IEnumerable errors ) : void
modelState this
errors IEnumerable
return void

WithCookie() public static method

public static WithCookie ( this result, string cookieName, string cookieValue ) : System.Web.Mvc.ActionResult
result this
cookieName string
cookieValue string
return System.Web.Mvc.ActionResult

WithFlash() public static method

public static WithFlash ( this result, Controller controller, string message ) : System.Web.Mvc.ActionResult
result this
controller Controller
message string
return System.Web.Mvc.ActionResult

WithModelErrors() public static method

public static WithModelErrors ( this result, ModelStateDictionary modelState, IEnumerable errors ) : System.Web.Mvc.ActionResult
result this
modelState ModelStateDictionary
errors IEnumerable
return System.Web.Mvc.ActionResult

WithNoCache() public static method

public static WithNoCache ( this result ) : System.Web.Mvc.ActionResult
result this
return System.Web.Mvc.ActionResult