public void PassErrorsToMvcModelState(ModelStateDictionary modelState) { foreach (var eMsg in ErrorMessages) { modelState.AddModelError(eMsg.Key, eMsg.Value); } }