Let\'s say we have a function that changes a password for a user in a system in an MVC app.:
public JsonResult ChangePassword (string username, string curren
I always throw an exception in this case. Consider using InvalidEnumArgumentException, which gives richer information in this situation.