public ActionResult DeleteConfirmed(int id) { MEJJ_Moneda mEJJ_Moneda = db.MEJJ_Moneda.Find(id); db.MEJJ_Moneda.Remove(mEJJ_Moneda); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "IdMoneda,Codigo,Nombre")] MEJJ_Moneda mEJJ_Moneda) { if (ModelState.IsValid) { db.Entry(mEJJ_Moneda).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(mEJJ_Moneda)); }
public ActionResult Create([Bind(Include = "IdMoneda,Codigo,Nombre")] MEJJ_Moneda mEJJ_Moneda) { if (ModelState.IsValid) { db.MEJJ_Moneda.Add(mEJJ_Moneda); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(mEJJ_Moneda)); }
// GET: Moneda/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } MEJJ_Moneda mEJJ_Moneda = db.MEJJ_Moneda.Find(id); if (mEJJ_Moneda == null) { return(HttpNotFound()); } return(View(mEJJ_Moneda)); }