//Thêm đầu sách vào cơ sở dữ liệu public static string ThemDauSach(DauSach_DTO ds) { if (DauSach_DAO.SelectDauSachByName(ds.TenDauSach) == null) { return(DauSach_DAO.Insert(ds)); } else { return("Đầu sách đã tồn tại trong CSDL"); } }
//Thêm đầu sách vào cơ sở dữ liệu public static string ThemDauSach(DauSach_DTO ds) { if (DauSach_DAO.SelectDauSachByName(ds.TenDauSach) == null) { return(DauSach_DAO.Insert(ds)); } else { return("Đầu sách đã tồn tại trong CSDL"); } }