public sys_user LoginValidate(string uname, string pwd) { pwd = Encrypt.DesEncrypt(pwd); return(_sysuserRepository.Queryable <sys_user>().Where(s => s.account_name == uname && s.pass_word == pwd).First()); }