public List <Order> GetOrderData()
 {
     return(oda.GetOrderData());
 }
Пример #2
0
        /// <summary>
        /// 取得所有可用的訂購資料
        /// </summary>
        /// <param name="sort"></param>
        /// <param name="order"></param>
        /// <returns></returns>
        public ActionResult GetOrderData(string sort = null, string order = null)
        {
            var orders = OrderDataAccess.GetOrderData(sort, order);

            return(Json(orders, JsonRequestBehavior.AllowGet));
        }