// GET: Home public async Task <ActionResult> Index() { List <CustomerOrderDO> orders = await CustomerOrderDO.GetOrdersAsync(txt); ViewBag.Orders = orders; return(View()); }
public async Task <ActionResult> Index(IndexModel model) { List <CustomerOrderDO> orders = await CustomerOrderDO.GetOrdersAsync(model.CustomerID); ViewBag.Orders = orders; return(View()); }