public ActionResult DeleteConfirmed(int id) { try { hotelReservationService.DeleteReservation(id); return(RedirectToAction("Index")); } catch (Exception e) { ModelState.AddModelError("", e.Message); } return(View()); }