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

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