public ActionResult DeleteConfirmed(int id)
        {
            客戶資料 客戶資料 = CustomerRepo.GetCustomerById(id);

            CustomerRepo.Delete(客戶資料);
            CustomerRepo.UnitOfWork.Commit();
            return(RedirectToAction("Index"));
        }
Exemple #2
0
        public ActionResult DeleteConfirmed(int id)
        {
            客戶資料 客戶資料 = customerRepository.Find(id);

            customerRepository.Delete(客戶資料);
            customerRepository.UnitOfWork.Commit();
            return(RedirectToAction("Index"));
        }