Ejemplo n.º 1
0
        public bool KiemTraTaiKhoan(string TaiKhoan, string MatKhau)
        {
            bool f = false;

            try
            {
                //int result = db.CheckUserLogin


                int result = db.CheckUserLogin(CommandType.StoredProcedure,
                                               "spCheckDangNhap", new SqlParameter("@TaiKhoan", TaiKhoan),
                                               new SqlParameter("@MatKhau", MatKhau));
                if (result > 0)
                {
                    f = true;
                }
            }
            catch (SqlException)
            {
                f = false;
            }
            return(f);
        }