Пример #1
0
        public ActionResult OrderHistory()
        {
            ViewBag.Message = "Order History";

            PizzaStoreDataServiceClient psDataClient = new PizzaStoreDataServiceClient();
            List <OrderDAO>             orderHistory = psDataClient.GetOrders().ToList();

            ViewBag.Orders(orderHistory);

            return(View());
        }
 public List <OrderDAO> GetOrders()
 {
     return(psDataClient.GetOrders().ToList());
 }