C# Класс Mvc.Extensions.MvcExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

AddErrors() публичный статический Метод

public static AddErrors ( this modelState, IEnumerable errors ) : void
modelState this
errors IEnumerable
Результат void

WithCookie() публичный статический Метод

public static WithCookie ( this result, string cookieName, string cookieValue ) : System.Web.Mvc.ActionResult
result this
cookieName string
cookieValue string
Результат System.Web.Mvc.ActionResult

WithFlash() публичный статический Метод

public static WithFlash ( this result, Controller controller, string message ) : System.Web.Mvc.ActionResult
result this
controller Controller
message string
Результат System.Web.Mvc.ActionResult

WithModelErrors() публичный статический Метод

public static WithModelErrors ( this result, ModelStateDictionary modelState, IEnumerable errors ) : System.Web.Mvc.ActionResult
result this
modelState ModelStateDictionary
errors IEnumerable
Результат System.Web.Mvc.ActionResult

WithNoCache() публичный статический Метод

public static WithNoCache ( this result ) : System.Web.Mvc.ActionResult
result this
Результат System.Web.Mvc.ActionResult