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

            db.System_Track.Remove(system_Track);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Track_id,Form_id,Status_track_id,Track_remark,Track_title,Track_date")] System_Track system_Track)
 {
     if (ModelState.IsValid)
     {
         db.Entry(system_Track).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.Form_id         = new SelectList(db.System_Form, "Form_id", "Form_title", system_Track.Form_id);
     ViewBag.Status_track_id = new SelectList(db.System_Status_Track, "Status_track_id", "Status_track_name", system_Track.Status_track_id);
     return(View(system_Track));
 }
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            System_Track system_Track = db.System_Track.Find(id);

            if (system_Track == null)
            {
                return(HttpNotFound());
            }
            return(View(system_Track));
        }
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            System_Track system_Track = db.System_Track.Find(id);

            if (system_Track == null)
            {
                return(HttpNotFound());
            }
            ViewBag.Form_id         = new SelectList(db.System_Form, "Form_id", "Form_title", system_Track.Form_id);
            ViewBag.Status_track_id = new SelectList(db.System_Status_Track, "Status_track_id", "Status_track_name", system_Track.Status_track_id);
            return(View(system_Track));
        }