Exemplo n.º 1
0
        public async Task <IActionResult> AddOrder(int?ID = null)
        {
            if (ID == null)
            {
                return(RedirectToAction("Dashboard", "Admin"));
            }

            AddOrder order = new AddOrder();

            // assign event's ID
            order.EID = (int)ID;

            // lists for <select> for VType and Ticket type
            await order.CreateLists(_db);

            return(View(order));
        }