public ActionResult DeleteConfirmed(int id) { ImpExpAssociated impexpassociated = db.formats.Find(id); db.formats.Remove(impexpassociated); db.SaveChanges(); return(RedirectToAction("Index")); }
// // GET: /ImpExp/Delete/5 public ActionResult Delete(int id = 0) { ImpExpAssociated impexpassociated = db.formats.Find(id); if (impexpassociated == null) { return(HttpNotFound()); } return(View(impexpassociated)); }
public ActionResult Edit(ImpExpAssociated impexpassociated) { if (ModelState.IsValid) { db.Entry(impexpassociated).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index", new { id = impexpassociated.PmsId })); } return(View(impexpassociated)); }
public ActionResult Create(ImpExpAssociated impexpassociated) { if (ModelState.IsValid) { db.formats.Add(impexpassociated); db.SaveChanges(); return(RedirectToAction("Index", new { id = impexpassociated.PmsId })); } return(View(impexpassociated)); }