public ActionResult Edit([Bind(Include = "Travel_Other_Details_ID,Travel_Other_Details_NM")] HRMS_TRAVEL_OTHER_DETAILS_MS hRMS_TRAVEL_OTHER_DETAILS_MS)
        {
            if (ModelState.IsValid)
            {
                db.Entry(hRMS_TRAVEL_OTHER_DETAILS_MS).State = EntityState.Modified;
                db.SaveChanges(); ModelState.Clear();

                return(RedirectToAction("Index"));
            }
            return(View(hRMS_TRAVEL_OTHER_DETAILS_MS));
        }
        public ActionResult Create([Bind(Include = "Travel_Other_Details_ID,Travel_Other_Details_NM")] HRMS_TRAVEL_OTHER_DETAILS_MS hRMS_TRAVEL_OTHER_DETAILS_MS)
        {
            if (ModelState.IsValid)
            {
                db.HRMS_TRAVEL_OTHER_DETAILS_MS.Add(hRMS_TRAVEL_OTHER_DETAILS_MS);
                db.SaveChanges(); ModelState.Clear();

                return(RedirectToAction("Index"));
            }

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

            if (hRMS_TRAVEL_OTHER_DETAILS_MS == null)
            {
                return(HttpNotFound());
            }
            return(View(hRMS_TRAVEL_OTHER_DETAILS_MS));
        }
        public bool delete(long id)
        {
            HRMS_TRAVEL_OTHER_DETAILS_MS hRMS_TRAVEL_OTHER_DETAILS_MS = db.HRMS_TRAVEL_OTHER_DETAILS_MS.Find(id);

            if (hRMS_TRAVEL_OTHER_DETAILS_MS != null)
            {
                db.HRMS_TRAVEL_OTHER_DETAILS_MS.Remove(hRMS_TRAVEL_OTHER_DETAILS_MS);
                db.SaveChanges(); ModelState.Clear();

                return(true);
            }
            else
            {
                return(false);
            }
        }