Example #1
0
 //Thêm 1 thể loại vào bảng THELOAI
 public static string ThemTheLoai(TheLoai_DTO tl)
 {
     if (TheLoai_DAO.GetTheLoaiByName(tl.TenTheLoai) == null)
     {
         return(TheLoai_DAO.Insert(tl));
     }
     else
     {
         return("Thể loại này đã có trong cơ sở dữ liệu");
     }
 }