in src/Relecloud.Web.CallCenter/Infrastructure/ExtensionMethods.cs [96:110]
public static void AddErrorMessages(this ModelStateDictionary modelStateDictionary, IDictionary<string, IEnumerable<string>>? errorMessages)
{
if (modelStateDictionary == null || errorMessages == null)
{
return;
}
foreach (var errorMessage in errorMessages)
{
foreach (var errorText in errorMessage.Value)
{
modelStateDictionary.AddModelError(errorMessage.Key, errorText);
}
}
}