public ActionResult DeleteConfirmed(int id)
        {
            Velejador velejador = db.Velejadors.Find(id);

            db.Velejadors.Remove(velejador);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "id,nome,modalidade,idade,celular")] Velejador velejador)
 {
     if (ModelState.IsValid)
     {
         db.Entry(velejador).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(velejador));
 }
        public ActionResult Create([Bind(Include = "id,nome,modalidade,idade,celular")] Velejador velejador)
        {
            if (ModelState.IsValid)
            {
                db.Velejadors.Add(velejador);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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