Esempio n. 1
0
        public ActionResult OrderList(OrderStatus status)
        {
            bool flag   = status != OrderStatus.InCart;
            int? baseId = (Session["Account"] as Account)?.AccountId;
            var  order  = _order.FindAll(x => x.AccountId == baseId && (x.Status == status) == flag).OrderByDescending(x => x.OrderDate);

            return(PartialView("_OrderList", order));
        }