public static bool capNhatThongTinKH(DTO.DTO_KhachHang kh) { return(DAO.DAO_KhachHang.capNhatThongTinKH(kh)); }
public void XoaKhachHang(DTO_KhachHang khDTO) { helper.ThucHienCauLenhSQL("DELETE from KHACHHANG Where MaKH=N'" + khDTO.MaKH + "'"); }
public static bool themKhachHang(DTO.DTO_KhachHang kh) { return(DAO.DAO_KhachHang.themKhachHang(kh)); }
public void ThemKhachHang(DTO_KhachHang khDTO) { helper.ThucHienCauLenhSQL("INSERT INTO KHACHHANG (MaKH, HoTen, DiaChi, Sdt) VALUES (N'" + khDTO.MaKH + "',N'" + khDTO.HoTen + "',N'" + khDTO.DiaChi + "',N'" + khDTO.SoDienThoai + "')"); }
public void CapNhatKhachHang(DTO_KhachHang khDTO) { helper.ThucHienCauLenhSQL("UPDATE KHACHHANG SET HoTen =N'" + khDTO.HoTen + "', DiaChi = N'" + khDTO.DiaChi + "', Sdt = N'" + khDTO.SoDienThoai + "' where MaKH = N'" + khDTO.MaKH + "'"); }
public void XoadulieuKhachHang(DTO_KhachHang et) { kh.XoaKhachHang(et); }
public void ThemdulieuKhachHang(DTO_KhachHang et) { //truyền vào đối tượng thôi. kh.ThemKhachHang(et); }
public void SuadulieuKhachHang(DTO_KhachHang et) { kh.CapNhatKhachHang(et); }