C# 클래스 Mvc.Extensions.MvcExtensions

파일 보기 프로젝트 열기: benjaminkeeping/Mvc.Extensions

공개 메소드들

메소드 설명
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