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

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