public ActionResult DeleteBooking(int booking_id) { try { DatabaseService ds = new DatabaseService(); ds.deleteBooking(booking_id); ViewData["result"] = "Booking Cancelled"; } catch (Exception) { ViewData["result"] = "Sorry, booking could not be cancelled"; } return View(); }