Пример #1
0
        public ActionResult Delete(int id)
        {
            var dao = new ContactDAO();

            dao.DeleteContact(id);

            return(RedirectToAction("Index", "Contact", "Admin"));
        }
Пример #2
0
        public void DeleteContact(int Id)
        {
            ContactDAO contactDAO = new ContactDAO();

            contactDAO.DeleteContact(Id);
        }