Esempio n. 1
0
 //Thêm sách vào cơ sở dữ liệu
 public static string ThemSach(Sach_DTO ds)
 {
     if (Sach_DAO.SelectSachByName(ds.TenSach) == null)
     {
         return(Sach_DAO.Insert(ds));
     }
     else
     {
         return("Đầu sách đã tồn tại trong CSDL");
     }
 }