コード例 #1
0
 public ActionResult Delete(string id, ATour tour)
 {
     try
     {
         BTourGuideOp tourOp = new BTourGuideOp();
         tourOp.DeleteTour(id);
         return RedirectToAction("Index");
     }
     catch (Exception e)
     {
         TempData["DeleteException"] = "Error in tour deletion: " + e.Message;
         return View();
     }
 }