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

            db.golf1.Remove(golf1);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "golferID,Name,country,trophies")] golf1 golf1)
 {
     if (ModelState.IsValid)
     {
         db.Entry(golf1).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(golf1));
 }
        public ActionResult Create([Bind(Include = "golferID,Name,country,trophies")] golf1 golf1)
        {
            if (ModelState.IsValid)
            {
                db.golf1.Add(golf1);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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