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)); }
public ActionResult GetLocationID(FormLocationID getID) { return(View(getID)); }