public bool AddTheLoai(TheLoaiSach tl)
 {
     if (!objTheLoai.IsRowExists(tl.MaTheLoai))
     {
         return(objTheLoai.AddRow(tl));
     }
     else
     {
         return(false);
     }
 }
Beispiel #2
0
 public bool AddSach(SachDTO s)
 {
     if (!objSach.IsRowExists(s.MaSach) && objTheLoai.IsRowExists(s.MaTheLoai))
     {
         return(objSach.AddRow(s));
     }
     else
     {
         return(false);
     }
 }