Ejemplo n.º 1
0
        static void AddProduct(Default.Container container, ProductService.Models.Product product)
        {
            container.AddToProducts(product);
            var serviceResponse = container.SaveChanges();

            foreach (var operationResponse in serviceResponse)
            {
                Console.WriteLine("Response: {0}", operationResponse.StatusCode);
            }
        }
Ejemplo n.º 2
0
        static void AddProduct(Default.Container container, ODataTest2017.Models.Product product)
        {
            container.AddToProducts(product);
            var serviceResponse = container.SaveChanges();

            foreach (var operationResponse in serviceResponse)
            {
                System.Diagnostics.Debug.WriteLine("Response: {0}", operationResponse.StatusCode);
                //Console.WriteLine("Response: {0}", operationResponse.StatusCode);
            }
        }