Example #1
0
        public IEnumerable <ValidationResult> Validate(ValidationContext validationContext)
        {
            ST_EmpDAO mST_EmpDAO = new ST_EmpDAO();

            if (mST_EmpDAO.isCurrentUser(Account, Password) == false)
            {
                yield return(new ValidationResult("帳號或密碼錯誤", new string[] { "Account" }));
            }
        }