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")); }
public void Delete(string code) { data.Delete(code); }
public int Delete(string Ma) { return(DAO.Delete(Ma)); }