public PassErrorsToMvcModelState ( ModelStateDictionary modelState ) : void | ||
modelState | ModelStateDictionary | |
Результат | void |
public void PassErrorsToMvcModelState(ModelStateDictionary modelState)
{
foreach (var eMsg in ErrorMessages)
{
modelState.AddModelError(eMsg.Key, eMsg.Value);
}
}