foreach (var modelState in ModelState.Values)
{
foreach (var error in modelState.Errors)
{
ModelState.AddModelError("", error.ErrorMessage);
}
}