Saturday, September 24, 2016

get your exceptions in your MVC actions to end up as yet another validation fail at @Html.ValidationSummary() in your views

catch (Exception ex)
{
   ModelState.AddModelError("Exception", ex.Message);
   return View(whatever);
}

No comments:

Post a Comment