Пример #1
0
        public IEnumerable <ValidationResult> Validate(ValidationContext validationContext)
        {
            var result = customerDataRepo.ISMember(this.帳號, this.密碼);

            if (!result)
            {
                yield return(new ValidationResult("帳號密碼錯誤!"));
            }
        }