Esempio n. 1
0
        public int Delete1(string maKH)
        {
            data.Connect();
            string sql       = "DELETE FROM KhachHang WHERE MaKH ='" + maKH + "'";
            int    numberOff = data.ExecuteNonQuery(sql);

            return(numberOff);
        }
Esempio n. 2
0
        public int Delete1(string maSP)
        {
            data.Connect();
            string sql       = "DELETE FROM SanPham WHERE MaSP ='" + maSP + "'";
            int    numberOff = data.ExecuteNonQuery(sql);

            return(numberOff);
        }