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

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