Пример #1
0
        // GET: Home
        public async Task <ActionResult> Index()
        {
            List <CustomerOrderDO> orders =
                await CustomerOrderDO.GetOrdersAsync(txt);

            ViewBag.Orders = orders;
            return(View());
        }
Пример #2
0
        public async Task <ActionResult> Index(IndexModel model)
        {
            List <CustomerOrderDO> orders =
                await CustomerOrderDO.GetOrdersAsync(model.CustomerID);


            ViewBag.Orders = orders;
            return(View());
        }