I want to be able to provide a message on my screen that says 'The user name or password provided is incorrect'. So I have the following statement in my controller:
ModelState.AddModelError("", "The user name or password provided is incorrect.");
And then on my view I have
@Html.ValidationSummary(true, "Login was unsuccessful.")
But that gives me the message:
Login was unsuccessful
- The user name or password provided is incorrect
So how do I just display one of these messages rather than both?