/* * Displays Customer Order ID order history */ public ActionResult GetCustomerOrderHistory(FormCustomerID search) { int id = Int32.Parse(search.CustomerID); List <Orders> orderList = _repository.DisplayOrderHistoryByCustomer(id); IEnumerable <OrderViewModel> orderModelList = orderList.Select(x => new OrderViewModel { OrderId = x.OrderId, LocationId = x.LocationId, CustomerId = x.CustomerId, OrderTotal = x.OrderTotal, Date = x.Date }); return(View(orderModelList)); }
/* * Gets CUstomer ID Model Binding */ public ActionResult GetCustomerID(FormCustomerID getID) { return(View(getID)); }