// GET: ReservationMod/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ReservationMod reservationmod = _ReservationMod.SelectById(id);

            if (reservationmod == null)
            {
                return(HttpNotFound());
            }
            return(View(reservationmod));
        }
 public ActionResult Edit([Bind(Include = "ReservationModId,ReservationModName")] ReservationMod reservationmod)
 {
     if (!ModelState.IsValid)
     {
         return(View(reservationmod));
     }
     try
     {
         _ReservationMod.Update(reservationmod);
         _ReservationMod.Save();
     }
     catch (Exception)
     {
         // todo
     }
     return(RedirectToAction("Index"));
 }