Example #1
0
        public IActionResult PlaceOrder()
        {
            var sessionOrder = Utils.GetCurrentOrder(HttpContext.Session);
            var API          = new OrderApi(new Configuration {
                BasePath = "https://localhost:44368/"
            });

            API.ApiOrderPost(sessionOrder);

            return(RedirectToAction("Index", "Home"));
        }