Nucleus .Net Core CMS

ModelStateExtensions Class

Namespace: Nucleus.Extensions
Assembly: Nucleus.Extensions.dll
Extensions used to read and manipulate a Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary.

Methods

RemovePrefix (ModelStateDictionary,String) Method

RemovePrefix (ModelStateDictionary modelState, String prefix)
Remove all items with the specifed prefix from model state

ToErrorString (ModelStateDictionary) Method

ToErrorString (ModelStateDictionary modelState)
Convert a ModelStateDictionary to a comma-separated string, suitable for on-screen display.