Пример #1
0
 public List <SanPham> LayToanBoSanPham()
 {
     try
     {
         SanPhamAccess spA = new SanPhamAccess();
         return(spA.LayToanBoSanPham());
     }catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #2
0
 public void SuaSanPham(SanPham sp)
 {
     try
     {
         SanPhamAccess spA = new SanPhamAccess();
         spA.SuaSanPham(sp);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #3
0
 public void XoaSanPham(string maSP)
 {
     try
     {
         SanPhamAccess spA = new SanPhamAccess();
         spA.XoaSanPham(maSP);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #4
0
 public List <SanPham> LaySanPhamTheoMaLoaiHang(string maLoaiHang)
 {
     try
     {
         SanPhamAccess spA = new SanPhamAccess();
         return(spA.LaySanPhamTheoMaLoaiHang(maLoaiHang));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #5
0
        public int ValidMaSanPhamToAdd(string maSinh)

        {
            try
            {
                SanPhamAccess spA = new SanPhamAccess();
                return(spA.ValidMaSanPhamToAdd(maSinh));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }