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

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