Ejemplo n.º 1
0
 public ActionResult Delete(string tourid, AEvent tourEvent)
 {
     try
     {
         BTourGuideOp tourOp = new BTourGuideOp();
         tourOp.DeleteEvent(tourid, tourEvent.TourDate);
         return RedirectToAction("Index");
     }
     catch(Exception e)
     {
         TempData["DeleteException"] = "Error in event deletion: " + e.Message;
         return View();
     }
 }