C# Class Signum.Web.ModelStateExtensions

Mostrar archivo Open project: signumsoftware/framework

Public Methods

Method Description
AddModelError ( this modelState, string key, string errorMessage, string attemptedValue ) : void
FromContext ( this modelState, MappingContext context, bool append = false ) : void
FromDictionary ( this modelState, Dictionary errors, NameValueCollection form, bool append = false ) : void

Method Details

AddModelError() public static method

public static AddModelError ( this modelState, string key, string errorMessage, string attemptedValue ) : void
modelState this
key string
errorMessage string
attemptedValue string
return void

FromContext() public static method

public static FromContext ( this modelState, MappingContext context, bool append = false ) : void
modelState this
context MappingContext
append bool
return void

FromDictionary() public static method

public static FromDictionary ( this modelState, Dictionary errors, NameValueCollection form, bool append = false ) : void
modelState this
errors Dictionary
form System.Collections.Specialized.NameValueCollection
append bool
return void