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