C# Class Mvc.Extensions.MvcExtensions

Afficher le fichier Open project: benjaminkeeping/Mvc.Extensions

Méthodes publiques

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

public static AddErrors ( this modelState, IEnumerable errors ) : void
modelState this
errors IEnumerable
Résultat void

WithCookie() public static méthode

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

WithFlash() public static méthode

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

WithModelErrors() public static méthode

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

WithNoCache() public static méthode

public static WithNoCache ( this result ) : System.Web.Mvc.ActionResult
result this
Résultat System.Web.Mvc.ActionResult