SyntaxFix
Write A Post
Hire A Developer
Questions
IN your view insert
@Html.ValidationMessage("Error")
then in the controller after you use new in your model
var model = new yourmodel(); try{ [...] }catch(Exception ex){ ModelState.AddModelError("Error", ex.Message); return View(model); }