public ActionResult Delete(string[] selectedReservation) { int idReservation = 0; int nbOfReservations = selectedReservation.Length; for (int i = 0; i < nbOfReservations; i++) { idReservation = Convert.ToInt32(selectedReservation[i].ToString()); ReservationManager.DeleteRoomReservation(idReservation); ReservationManager.DeleteReservation(idReservation); } return(View("DeleteOk")); }