I have a method which will return JsonResult
or RedirectToRouteResult
based on some conditions in my asp.net mvc (C#) application.
The RulesException
can be shown in <%= Html.ValidationSummary()%>
, if i use return RedirectToAction(.....)
.
How can i show the rules exceptions in ValidationSummary when i return it as JsonResult
?