Exemplo n.º 1
0
        public void AddRowTest()
        {
            TheLoaiSach theLoai = new TheLoaiSach()
            {
                MaTheLoai  = "TL02",
                TenTheLoai = "Sách Giáo Khoa",
            };

            Assert.IsTrue(theLoaiSachTable.AddRow(theLoai));
        }
 public bool AddTheLoai(TheLoaiSach tl)
 {
     if (!objTheLoai.IsRowExists(tl.MaTheLoai))
     {
         return(objTheLoai.AddRow(tl));
     }
     else
     {
         return(false);
     }
 }