C# Class Candor.Web.Mvc.ModelStateDictionaryExtension

Extensions for ModelStateDictionary
Show file Open project: michael-lang/candor-common

Public Methods

Method Description
ToHtmlString ( this modelState ) : String

Converts a model state dictionary into an html formatted string for a custom presentation.

ToJson ( this modelState ) : object

Converts a model state dictionary into a Json response for a custom presentation.

Method Details

ToHtmlString() public static method

Converts a model state dictionary into an html formatted string for a custom presentation.
public static ToHtmlString ( this modelState ) : String
modelState this
return String

ToJson() public static method

Converts a model state dictionary into a Json response for a custom presentation.
public static ToJson ( this modelState ) : object
modelState this
return object