public ActionResult Edit(tbl_cv_wilingtorelocate tbl_cv_wilingtorelocate)
 {
     if (ModelState.IsValid)
     {
         db.tbl_cv_wilingtorelocate.Attach(tbl_cv_wilingtorelocate);
         db.ObjectStateManager.ChangeObjectState(tbl_cv_wilingtorelocate, EntityState.Modified);
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(tbl_cv_wilingtorelocate);
 }
        public ActionResult Create(tbl_cv_wilingtorelocate tbl_cv_wilingtorelocate)
        {
            if (ModelState.IsValid)
            {
                db.tbl_cv_wilingtorelocate.AddObject(tbl_cv_wilingtorelocate);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(tbl_cv_wilingtorelocate);
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the tbl_cv_wilingtorelocate EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotbl_cv_wilingtorelocate(tbl_cv_wilingtorelocate tbl_cv_wilingtorelocate)
 {
     base.AddObject("tbl_cv_wilingtorelocate", tbl_cv_wilingtorelocate);
 }
 /// <summary>
 /// Create a new tbl_cv_wilingtorelocate object.
 /// </summary>
 /// <param name="el_id">Initial value of the el_id property.</param>
 /// <param name="el_name_vi">Initial value of the el_name_vi property.</param>
 public static tbl_cv_wilingtorelocate Createtbl_cv_wilingtorelocate(global::System.Int32 el_id, global::System.String el_name_vi)
 {
     tbl_cv_wilingtorelocate tbl_cv_wilingtorelocate = new tbl_cv_wilingtorelocate();
     tbl_cv_wilingtorelocate.el_id = el_id;
     tbl_cv_wilingtorelocate.el_name_vi = el_name_vi;
     return tbl_cv_wilingtorelocate;
 }