예제 #1
0
 public BindingList<HangHoaDTO> LayDanhSach()
 {
     // Kiem tra Business Rule neu co
     BindingList<HangHoaDTO> danhSach = new BindingList<HangHoaDTO>();
     HangHoaDAO itemDAO = new HangHoaDAO();
     danhSach = itemDAO.LayDanhSach();
     return danhSach;
 }
예제 #2
0
 public void Xoa(int ma)
 {
     HangHoaDAO itemDAO = new HangHoaDAO();
     itemDAO.Xoa(ma);
 }
예제 #3
0
 public void Them(HangHoaDTO itemDTO)
 {
     HangHoaDAO itemDAO = new HangHoaDAO();
     itemDAO.Them(itemDTO);
 }
예제 #4
0
 public void Sua(HangHoaDTO itemDTO)
 {
     HangHoaDAO itemDAO = new HangHoaDAO();
     itemDAO.Sua(itemDTO);
 }