예제 #1
0
        public string Get(int id)
        {
            DBFacade   db       = new DBFacade();
            ProductDto product  = new ProductDto("Black Hoodie", "cloths", "A Stylish Black Hoodie", 10.99, 1);
            ProductDto product2 = new ProductDto("Red Hoodie", "cloths", "A Stylish Red Hoodie", 9.99, 2);

            List <ProductDto> products = new List <ProductDto>();

            products.Add(product);
            products.Add(product2);

            OrderDto order = new OrderDto(10, "Denmark", "Hedelundvej 112", "6705", products,
                                          "CreditCard", "1111222212341234", "Hlynur Geir Agnarsson", "321", "2021");

            db.StoreOrder(order);

            return("Success!");
        }