public ActionResult DeleteConfirmed(DateTime id)
        {
            MeetScores meetScores = db.MeetScores.Find(id);

            db.MeetScores.Remove(meetScores);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "MeetDate,Name,Location,Vault,Bar,Beam,Floor,Overall")] MeetScores meetScores)
 {
     if (ModelState.IsValid)
     {
         db.Entry(meetScores).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(meetScores));
 }
        public ActionResult Create([Bind(Include = "MeetDate,Name,Location,Vault,Bar,Beam,Floor,Overall")] MeetScores meetScores)
        {
            if (ModelState.IsValid)
            {
                db.MeetScores.Add(meetScores);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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