コード例 #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);
            }
        }
コード例 #2
0
        static void AddSupplier(Default.Container container, ProductService.Models.Supplier supplier)
        {
            container.AddToSuppliers(supplier);
            var serviceResponse = container.SaveChanges();

            foreach (var operationResponse in serviceResponse)
            {
                Console.WriteLine("Response: {0}", operationResponse.StatusCode);
            }
        }
コード例 #3
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);
            }
        }