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

            db.BUSINESS_TRIP_REPORT_.Remove(bUSINESS_TRIP_REPORT_);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Employee_id,date,type_of_trip,IO_specify,destination,Departure_Date,Return_Date,TRIP_OBJECTIVE,Objectives")] BUSINESS_TRIP_REPORT_ bUSINESS_TRIP_REPORT_)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bUSINESS_TRIP_REPORT_).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.Employee_id = new SelectList(db.master_file, "employee_id", "employee_name", bUSINESS_TRIP_REPORT_.Employee_id);
     return(View(bUSINESS_TRIP_REPORT_));
 }
        // GET: BUSINESS_TRIP_REPORT_/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            BUSINESS_TRIP_REPORT_ bUSINESS_TRIP_REPORT_ = db.BUSINESS_TRIP_REPORT_.Find(id);

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

            if (bUSINESS_TRIP_REPORT_ == null)
            {
                return(HttpNotFound());
            }
            ViewBag.Employee_id = new SelectList(db.master_file, "employee_id", "employee_name", bUSINESS_TRIP_REPORT_.Employee_id);
            return(View(bUSINESS_TRIP_REPORT_));
        }