Beispiel #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            ImpExpAssociated impexpassociated = db.formats.Find(id);

            db.formats.Remove(impexpassociated);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
        //
        // GET: /ImpExp/Delete/5

        public ActionResult Delete(int id = 0)
        {
            ImpExpAssociated impexpassociated = db.formats.Find(id);

            if (impexpassociated == null)
            {
                return(HttpNotFound());
            }
            return(View(impexpassociated));
        }
Beispiel #3
0
 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));
 }
Beispiel #4
0
        public ActionResult Create(ImpExpAssociated impexpassociated)
        {
            if (ModelState.IsValid)
            {
                db.formats.Add(impexpassociated);
                db.SaveChanges();
                return(RedirectToAction("Index", new { id = impexpassociated.PmsId }));
            }

            return(View(impexpassociated));
        }