public ActionResult Delete(int id) { var dao = new FeedBackDao(); dao.Delete(id); return(RedirectToAction("Index")); }
public ActionResult Delete(int id = 1) { var dao = new FeedBackDao(); if (dao.Delete(id)) { TempData["Success"] = "Xóa feedback hoàn tất"; } else { TempData["Error"] = "Xóa feedback thất bại"; } return(RedirectToAction("Index")); }