public ActionResult DeleteConfirmed(int id)
        {
            PlaceLinkType placeLinkType = db.PlaceLinkType.Find(id);

            db.PlaceLinkType.Remove(placeLinkType);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "PlaceLinkTypeID,Description")] PlaceLinkType placeLinkType)
 {
     if (ModelState.IsValid)
     {
         db.Entry(placeLinkType).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(placeLinkType));
 }
        public ActionResult Create([Bind(Include = "PlaceLinkTypeID,Description")] PlaceLinkType placeLinkType)
        {
            if (ModelState.IsValid)
            {
                db.PlaceLinkType.Add(placeLinkType);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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