Exemplo n.º 1
0
 public ActionResult Delete(string id, AReg reg)
 {
     try
     {
         BTourGuideOp tourOp = new BTourGuideOp();
         tourOp.DeleteReg(id);
         return RedirectToAction("Index");
     }
     catch(Exception e)
     {
         TempData["DeleteException"] = "Error in Reg deletion: " + e.Message;
         return View();
     }
 }