public ActionResult DeleteConfirmed(long id)
        {
            Bailarin bailarin = db.Bailarin.Find(id);

            db.Bailarin.Remove(bailarin);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Documento,Nombre,Apellido,Edad,Sexo,Telefono,Email")] Bailarin bailarin)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bailarin).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(bailarin));
 }
        public ActionResult Create([Bind(Include = "Id,Documento,Nombre,Apellido,Edad,Sexo,Telefono,Email")] Bailarin bailarin)
        {
            if (ModelState.IsValid)
            {
                db.Bailarin.Add(bailarin);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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