@{ Layout = "_LayoutSimple"; var allErrors = ViewData.ModelState.Values.SelectMany(v => v.Errors.Select(b => b.ErrorMessage)); }