public ActionResult DeleteConfirmed(int id) { DEMO dEMO = db.DEMO.Find(id); db.DEMO.Remove(dEMO); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "IdProveedor,Apellido,Nombre,Ruc,Credito")] DEMO dEMO) { if (ModelState.IsValid) { db.Entry(dEMO).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(dEMO)); }
public ActionResult Create([Bind(Include = "IdProveedor,Apellido,Nombre,Ruc,Credito")] DEMO dEMO) { if (ModelState.IsValid) { db.DEMO.Add(dEMO); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(dEMO)); }
// GET: DEMOes/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } DEMO dEMO = db.DEMO.Find(id); if (dEMO == null) { return(HttpNotFound()); } return(View(dEMO)); }
static void Main(string[] args) { DEMO <class10> cc9 = new DEMO <class10>(); //DEMO<class9> cc10=new DEMO<class9> }