public ActionResult Create(tbl_ItemGroup tbl_itemgroup)
        {
            if (ModelState.IsValid)
            {
                db.tbl_ItemGroup.Add(tbl_itemgroup);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            ViewBag.ItemTypeID = new SelectList(db.tbl_ItemType, "ItemTypeID", "ItemTypeName", tbl_itemgroup.ItemTypeID);
            return View(tbl_itemgroup);
        }
 public ActionResult Edit(tbl_ItemGroup tbl_itemgroup)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_itemgroup).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.ItemTypeID = new SelectList(db.tbl_ItemType, "ItemTypeID", "ItemTypeName", tbl_itemgroup.ItemTypeID);
     return View(tbl_itemgroup);
 }