public ActionResult DeleteConfirmed(int id)
        {
            RecommendationHotel recommendationHotel = db.RecommendationsHotel.Find(id);

            db.RecommendationsHotel.Remove(recommendationHotel);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID,HotelID,recoName,recoPhone,recoRating,recoInfo")] RecommendationHotel recommendationHotel)
 {
     if (ModelState.IsValid)
     {
         db.Entry(recommendationHotel).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.HotelID = new SelectList(db.hotels, "ID", "hotelName", recommendationHotel.HotelID);
     return(View(recommendationHotel));
 }
        // GET: RecommendationHotels/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            RecommendationHotel recommendationHotel = db.RecommendationsHotel.Find(id);

            if (recommendationHotel == null)
            {
                return(HttpNotFound());
            }
            return(View(recommendationHotel));
        }
        // GET: RecommendationHotels/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            RecommendationHotel recommendationHotel = db.RecommendationsHotel.Find(id);

            if (recommendationHotel == null)
            {
                return(HttpNotFound());
            }
            ViewBag.HotelID = new SelectList(db.hotels, "ID", "hotelName", recommendationHotel.HotelID);
            return(View(recommendationHotel));
        }