public ActionResult DeleteConfirmed(int id)
        {
            tbl_entity tbl_entity = db.tbl_entity.Find(id);

            db.tbl_entity.Remove(tbl_entity);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "entity_id,entity_name,action_name,action_description,entry_criteria,exit_criteria,entity_owner,entity_status,change_status,workflow_id")] tbl_entity tbl_entity)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_entity).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.entity_owner = new SelectList(db.tbl_empoyee, "emp_id", "emp_name", tbl_entity.entity_owner);
     ViewBag.workflow_id  = new SelectList(db.Work_flow_tbl, "work_flow_id", "work_flow_name", tbl_entity.workflow_id);
     return(View(tbl_entity));
 }
        // GET: tbl_entity/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tbl_entity tbl_entity = db.tbl_entity.Find(id);

            if (tbl_entity == null)
            {
                return(HttpNotFound());
            }
            return(View(tbl_entity));
        }
        // GET: tbl_entity/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tbl_entity tbl_entity = db.tbl_entity.Find(id);

            if (tbl_entity == null)
            {
                return(HttpNotFound());
            }
            ViewBag.entity_owner = new SelectList(db.tbl_empoyee, "emp_id", "emp_name", tbl_entity.entity_owner);
            ViewBag.workflow_id  = new SelectList(db.Work_flow_tbl, "work_flow_id", "work_flow_name", tbl_entity.workflow_id);
            return(View(tbl_entity));
        }