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

            db.tbl_Config_FlowName.Remove(tbl_config_flowname);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "ID,TenQuyTrinh,DienGiai,ThuTu,TrangThai")] tbl_Config_FlowName tbl_config_flowname)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_config_flowname).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tbl_config_flowname));
 }
Ejemplo n.º 3
0
        public ActionResult Create([Bind(Include = "ID,TenQuyTrinh,DienGiai,ThuTu,TrangThai")] tbl_Config_FlowName tbl_config_flowname)
        {
            if (ModelState.IsValid)
            {
                db.tbl_Config_FlowName.Add(tbl_config_flowname);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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