Пример #1
0
        public ActionResult Statements(DateTime min, DateTime max)
        {
            CakesPosRepository cpr = new CakesPosRepository(_connectionString);
            IEnumerable <OrderHistoryViewModel> orders = cpr.GetCatererOrdersByDate(min, max);

            orders = orders.OrderBy(o => o.lastName);
            return(Json(orders, JsonRequestBehavior.AllowGet));
        }