public ActionResult checkSimpleSentence(UnsafeValue testValue) { mdlTestResult ret = new mdlTestResult(); ret.testResult = testValue.Validate<valSimpleComment>().isValid; // note: this validator is in the Unsafe.Data.Common.Validators namespace return Json(ret); }
public ActionResult checkNegInt(UnsafeValue testValue) { mdlTestResult ret = new mdlTestResult(); ret.testResult = testValue.Validate<valNegInteger>().isValid; // note: this is a custom validator in this project's bizObjects namespace return Json(ret); }
public ActionResult checkDangerousID(UnsafeValue testValue) { mdlTestResult ret = new mdlTestResult(); ret.testResult = testValue.Validate<valID>().isValid; // note: this validator is in the Unsafe.Data.Common.Validators namespace return Json(ret); }