public void XoaThuongHieu(string ma)
        {
            THUONG_HIEU th = data.THUONG_HIEUs.Where(t => t.MaTH == ma).FirstOrDefault();

            data.THUONG_HIEUs.DeleteOnSubmit(th);
            data.SubmitChanges();
        }
        public void SuaThuongHieu(string ma, string ten, string hinh)
        {
            THUONG_HIEU th = data.THUONG_HIEUs.Where(t => t.MaTH == ma).FirstOrDefault();

            th.TenTH  = ten;
            th.Images = hinh;
            data.SubmitChanges();
        }
        public string TimHinhAnh(string ma)
        {
            THUONG_HIEU th = data.THUONG_HIEUs.Where(t => t.MaTH == ma).FirstOrDefault();

            if (th != null)
            {
                return(th.Images);
            }
            return("KoXacDinh.jpg");
        }
        public void ThemThuongHieu(string ma, string ten, string hinh)
        {
            THUONG_HIEU t = new THUONG_HIEU();

            t.MaTH   = ma;
            t.TenTH  = ten;
            t.Images = hinh;
            data.THUONG_HIEUs.InsertOnSubmit(t);
            data.SubmitChanges();
        }
        public THUONG_HIEU TimThuongHieu(string ma)
        {
            THUONG_HIEU th = data.THUONG_HIEUs.Where(t => t.MaTH == ma).FirstOrDefault();

            return(th);
        }
        public bool KiemTraKhoaChinh(string ma)
        {
            THUONG_HIEU kt = data.THUONG_HIEUs.Where(t => t.MaTH == ma).FirstOrDefault();

            return(kt != null);
        }