示例#1
0
        public ActionResult GetLocationOrderHistory(FormLocationID search)
        {
            int           id             = search.LocationID;
            List <Orders> LocationOrders = _repository.DisplayOrderHistoryByLocation(id);
            IEnumerable <OrderViewModel> orderModelList = LocationOrders.Select(x => new OrderViewModel
            {
                OrderId    = x.OrderId,
                LocationId = x.LocationId,
                CustomerId = x.CustomerId,
                OrderTotal = x.OrderTotal,
                Date       = x.Date
            });

            return(View(orderModelList));
        }
示例#2
0
 public ActionResult GetLocationID(FormLocationID getID)
 {
     return(View(getID));
 }