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); } }
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); } }
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); } }