示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }