Пример #1
0
        public void UpdateID(string postid)
        {
            Debug.Assert(ProductId != 0);

            using (var repository = new TradelrRepository())
            {
                var t = repository.GetProduct(ProductId).tumblrPosts;
                if (t == null)
                {
                    t = new tumblrPost();
                    repository.AddTumblrPost(t);
                }
                t.productid = ProductId;
                t.postid    = postid;
                repository.Save();
            }
        }