public static void Insert(ProducerGroup producerGroup)
        {
            using (var db = OnlineStoreDbContext.Entity)
            {
                if (!db.Groups.Any(item => item.ParentID == producerGroup.GroupID))
                {
                    db.ProducerGroups.Add(producerGroup);

                    db.SaveChanges();
                }
            }
        }
        public static void Update(ProducerGroup producerGroup)
        {
            using (var db = OnlineStoreDbContext.Entity)
            {
                var orgProducerGroup = db.ProducerGroups.Where(item => item.ID == producerGroup.ID).Single();

                orgProducerGroup.ProducerID = producerGroup.ProducerID;
                orgProducerGroup.GroupID    = producerGroup.GroupID;
                orgProducerGroup.LastUpdate = producerGroup.LastUpdate;

                db.SaveChanges();
            }
        }