public ActionResult Delete(int id) { var dao = new ContactDAO(); dao.DeleteContact(id); return(RedirectToAction("Index", "Contact", "Admin")); }
public void DeleteContact(int Id) { ContactDAO contactDAO = new ContactDAO(); contactDAO.DeleteContact(Id); }