I installed Fool-Proof from nuGet, but its not working uncaught errors.
Install-Package foolproof -Version 0.9.4518
As I installed it, new folder with name Clients Scripts gets added in to my project with three libraries: FoolProof Unobtrusive, FoolProof jQuery Validation and FoolProof Validation. Then I create new bundle in bundle.config and linked with my shared layout.
public bool active { get; set; }
[RequiredIf("active", true,ErrorMessage = "Code is Required")]
public int Code { get; set; }
It's not displaying validation message. Now, when I checked my console I am getting following errors:
