public ActionResult DeleteConfirmed(int id)
        {
            VacaySpot vacaySpot = db.VacaySpots.Find(id);

            db.VacaySpots.Remove(vacaySpot);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "VacaySpotID,VacaySpot1")] VacaySpot vacaySpot)
 {
     if (ModelState.IsValid)
     {
         db.Entry(vacaySpot).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(vacaySpot));
 }
        public ActionResult Create([Bind(Include = "VacaySpotID,VacaySpot1")] VacaySpot vacaySpot)
        {
            if (ModelState.IsValid)
            {
                db.VacaySpots.Add(vacaySpot);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(vacaySpot));
        }
        // GET: VacaySpots/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            VacaySpot vacaySpot = db.VacaySpots.Find(id);

            if (vacaySpot == null)
            {
                return(HttpNotFound());
            }
            return(View(vacaySpot));
        }