Ejemplo n.º 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            getEdiNo_s getEdiNo_s = db.getEdiNo_s.Find(id);

            db.getEdiNo_s.Remove(getEdiNo_s);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "id,customsCode,agentCode,entryType,userName")] getEdiNo_s getEdiNo_s)
 {
     if (ModelState.IsValid)
     {
         db.Entry(getEdiNo_s).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(getEdiNo_s));
 }
Ejemplo n.º 3
0
        public ActionResult Create([Bind(Include = "id,customsCode,agentCode,entryType,userName")] getEdiNo_s getEdiNo_s)
        {
            if (ModelState.IsValid)
            {
                db.getEdiNo_s.Add(getEdiNo_s);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(getEdiNo_s));
        }
Ejemplo n.º 4
0
        // GET: getEdiNo_s/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            getEdiNo_s getEdiNo_s = db.getEdiNo_s.Find(id);

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