Exemplo n.º 1
0
        public ActionResult HistorySearch(string search, string opt, DateTime date, bool all)
        {
            CakesPosRepository cpr = new CakesPosRepository(_connectionString);
            IEnumerable <OrderHistoryViewModel> ordersHistory = cpr.SearchOrders(search, opt, date, all);

            return(Json(ordersHistory, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        public ActionResult OrderHistory()
        {
            CakesPosRepository cpr = new CakesPosRepository(_connectionString);
            //IEnumerable<OrderHistoryViewModel> orders = cpr.GetOrders();
            IEnumerable <OrderHistoryViewModel> orders = cpr.SearchOrders("", "open", DateTime.Today.Date, false);

            return(View(orders));
        }