Exemple #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            tr_disposal_bap tr_disposal_bap = db.tr_disposal_bap.Find(id);

            db.tr_disposal_bap.Remove(tr_disposal_bap);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemple #2
0
 public ActionResult Edit([Bind(Include = "disposal_bap_id,disposal_id,disposal_dept_id,fl_disposal_process,disposal_bap_date,disposal_bap_description,disposal_upload_address,disposal_change_dept_id,fl_active,created_date,created_by,updated_date,updated_by,deleted_date,deleted_by,org_id")] tr_disposal_bap tr_disposal_bap)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tr_disposal_bap).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tr_disposal_bap));
 }
Exemple #3
0
        // GET: disposal_bap/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tr_disposal_bap tr_disposal_bap = db.tr_disposal_bap.Find(id);

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