public ActionResult NewInv(int id = 0)
        {
            for (int i = 1; i < 100; i++)
            {
                Session["AccessoryNullOrNot" + i] = "";
            }


            ViewBag.Cat = DropDownHandler.Category();
            // ViewBag.Model = DropDownHandler.Model();
            ViewBag.ItemAttribute   = DropDownHandler.ItemAttribute();
            ViewBag.Manfacturer     = DropDownHandler.Manfacturer();
            ViewBag.AccesoriesItems = DropDownHandler.Item();

            if (id > 0)
            {
                Session["edithide"] = "edt";
                var dta = db.inventryItems.Where(m => m.id == id).FirstOrDefault();
                //var subCat = db.SubCategories.Where(o => o.id == dta.CatID).FirstOrDefault();

                //SubjectByClassJs(subCat.CatId);

                Session["UpdatCatName"]     = dta.SubCategory.Category.Catgory;
                Session["UpdateSubcatName"] = dta.SubCategory.SubCat;
                Session["updateModel"]      = dta.Model.Models;
                //InventoryItemCustom inventoryItemCustom = new InventoryItemCustom();
                //inventoryItemCustom.inventryItem = dta;
                //inventoryItemCustom.SubCategory = subCat;

                return(View(dta));
            }
            else
            {
                Session["edithide"] = "new";

                return(View());
            }
        }
 public ActionResult ManufacturerLoad()
 {
     return(Json(DropDownHandler.Manfacturer(), JsonRequestBehavior.AllowGet));
 }