public static void Insert(ProductVarientPrice productVarientPrice)
        {
            using (var db = OnlineStoreDbContext.Entity)
            {
                db.ProductVarientPrices.Add(productVarientPrice);

                db.SaveChanges();
            }
        }
        public static void Update(ProductVarientPrice productVarientPrice)
        {
            using (var db = OnlineStoreDbContext.Entity)
            {
                var orgProductVarientPrice = db.ProductVarientPrices.Where(item => item.ID == productVarientPrice.ID).Single();

                orgProductVarientPrice.ProductVarientID = productVarientPrice.ProductVarientID;
                orgProductVarientPrice.Price            = productVarientPrice.Price;
                orgProductVarientPrice.Count            = productVarientPrice.Count;
                orgProductVarientPrice.PriceType        = productVarientPrice.PriceType;
                orgProductVarientPrice.LastUpdate       = productVarientPrice.LastUpdate;

                db.SaveChanges();
            }
        }