Esempio n. 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            #region EF6 Code
            //Customer customer = db.CustomerSet.Find(id);
            //db.CustomerSet.Remove(customer);
            //db.SaveChanges();
            #endregion

            _repo.DeleteCustomer(id);
            return(RedirectToAction("Index"));
        }