コード例 #1
0
ファイル: AjaxController.cs プロジェクト: JamesMoody/Unsafe
        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
ファイル: AjaxController.cs プロジェクト: JamesMoody/Unsafe
        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
ファイル: AjaxController.cs プロジェクト: JamesMoody/Unsafe
        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);
        }