ModelState.AddModelError showing error twice
- by parminder
Hi Experts,
With MVC stuff when there is an error on property leve, we can add error to modelstate
but the same error is added to the summary also. How can we avoid to display it twice.
I want to display only public errors in the message summary and all other at property level.
Regards
Parminder