Example #1
0
 public static bool XoaTheLoai(TheLoaiDTO tl)
 {
     if (TheLoaiDAO.GetTheLoaiByName(tl.TenTheLoai) != null)
     {
         TheLoaiDAO.Delete(tl);
         return(true);
     }
     else
     {
         return(false);
     }
 }
 public ActionResult Delete(int id)
 {
     dao.Delete(id);
     return(RedirectToAction("Index", "TheLoai"));
 }
Example #3
0
 public void Delete(string code)
 {
     data.Delete(code);
 }
Example #4
0
 public int Delete(string Ma)
 {
     return(DAO.Delete(Ma));
 }