示例#1
0
        public ActionResult DeleteConfirmed(string id)
        {
            Estudiante_WLDM estudiante_WLDM = db.Estudiante_WLDM.Find(id);

            db.Estudiante_WLDM.Remove(estudiante_WLDM);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
示例#2
0
 public ActionResult Edit([Bind(Include = "Codigo,Nombre,Id,Telefono,Edad")] Estudiante_WLDM estudiante_WLDM)
 {
     if (ModelState.IsValid)
     {
         db.Entry(estudiante_WLDM).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(estudiante_WLDM));
 }
示例#3
0
        public ActionResult Create([Bind(Include = "Codigo,Nombre,Id,Telefono,Edad")] Estudiante_WLDM estudiante_WLDM)
        {
            if (ModelState.IsValid)
            {
                db.Estudiante_WLDM.Add(estudiante_WLDM);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(estudiante_WLDM));
        }
示例#4
0
        // GET: Estudiante_WLDM/Delete/5
        public ActionResult Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Estudiante_WLDM estudiante_WLDM = db.Estudiante_WLDM.Find(id);

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