public List <ItemGroupModel> GetData()
        {
            var allItemGroups = _res.GetData();
            var lstParent     = allItemGroups.Where(ds => ds.parent_item_group_id == null).OrderBy(s => s.seq_num).ToList();

            foreach (var item in lstParent)
            {
                item.children = GetHiearchyList(allItemGroups, item);
            }
            return(lstParent);
        }
        public List <ItemGroupModel> GetData()
        {
            var allItemGroups = _res.GetData();
            var lstParent     = allItemGroups.ToList();

            foreach (var item in lstParent)
            {
                item.children = GetHiearchyList(allItemGroups, item);
            }
            return(lstParent);
        }