public ActionResult Delete(long id) { try { // TODO: Add delete logic here AdvertiseDao bdDao = new AdvertiseDao(); bdDao.Delete(id); // SetAlert("Xóa thành công", "success"); return(RedirectToAction("Index")); } catch { // SetAlert("Không xóa được", "danger"); return(View()); } }
/// <summary> /// /// </summary> /// <param name="emp"></param> /// <returns></returns> public int Delete(int id) { return(dao.Delete(id)); }