示例#1
0
 public ActionResult Delete(int id, CustomerDTO obj)
 {
     try
     {
         MyRepository repository = new MyRepository();
         repository.DeleteCustomer(id);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }