public static int DelTitBook(DauSachDTO dauSach) { if (SachBUS.DelAllBooks(dauSach) > -1) { return(DauSachDAO.DeletTitleBook(dauSach)); } return(-1); }
public static List <DauSachDTO> GetTitleBooks(TheLoaiDTO theLoai) { return(DauSachDAO.SelecTitleBooks(theLoai)); }
public static int AddTitle(string ten, int soluong, int songay, int phat, TheLoaiDTO theLoai, int giabia) { return(DauSachDAO.InsertTitleBook(new DauSachDTO(ten, soluong, songay, phat, giabia, theLoai))); }
public static int SuaDauSach(DauSachDTO ds) { return(DauSachDAO.SuaDauSach(ds)); }
public static int ChangeTitleBook(string mads, string ten, int soluong, int songay, int phat, TheLoaiDTO theLoai, int giabia) { return(DauSachDAO.UpdatTitleBook(new DauSachDTO(mads, ten, soluong, songay, phat, giabia, theLoai))); }
public static int ThemDauSach(DauSachDTO ds) { return(DauSachDAO.ThemDauSach(ds)); }
public static int XoaDauSach(string MaSach) { return(DauSachDAO.XoaDauSach(MaSach)); }
public static DataTable LoadTTHD(string proc, string MaSach, string MaHD) { return(DauSachDAO.LoadTTHD(proc, MaSach, MaHD)); }
public static DataTable LoadDgvDauSach(string proc) { return(DauSachDAO.LoadDgvDauSach(proc)); }
public static DataTable LoadCboMaTT(string proc) { return(DauSachDAO.LoadCboMaTT(proc)); }