The Ajax request is as follows:
In the controller action method, I tried to add a ModelState error, and throw an exception, but the response never throws OnFailure. It always calls OnSuccess regardless of the response. Maybe I missed something here.
Question: when will it call the OnFailure js method? Any samples will be appreciated.
thanks
source
share