示例#1
0
 //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");
     }
 }