public ActionResult Save(CommodityRootsModel commodityRootsModel)
        {
            CommodityRoots com = new CommodityRoots();

            com = com.GetById(commodityRootsModel.id);
            commodityRootsModel.Fill(com);
            com.Save();
            return(RedirectToAction("Index"));
        }
        public ActionResult Edit(int Id)
        {
            CommodityRoots      frnds      = new CommodityRoots();
            CommodityRootsModel rootsModel = new CommodityRootsModel();
            var element = frnds.GetById(Id);

            rootsModel.Active             = element.Active;
            rootsModel.Code               = element.Code;
            rootsModel.CommodityChapterId = element.CommodityChapterId;
            rootsModel.Description        = element.Description;
            rootsModel.Name               = element.Name;
            rootsModel.id = element.Id;


            return(PartialView("_PopUpTree", rootsModel));
        }