Example #1
0
        public ActionResult CustomerSchedule(CustomerScheduleModelFilter filter = null, int pageNumber = 1)
        {
            int totalRecords;
            var model = _eventCustomerReportingService.GetCustomerScheduleModel(pageNumber, _pageSize, filter, out totalRecords) ??
                        new EventCustomerScheduleListModel();

            model.Filter = filter;

            var currentAction          = ControllerContext.RouteData.Values["action"].ToString();
            Func <int, string> urlFunc =
                pn =>
                Url.Action(currentAction,
                           new
            {
                pageNumber = pn,
                filter.Vehicle,
                filter.FromDate,
                filter.ToDate,
                filter.IsCorporateEvent,
                filter.IsRetailEvent,
                filter.IsPublicEvent,
                filter.IsPrivateEvent
            });

            model.PagingModel = new PagingModel(pageNumber, _pageSize, totalRecords, urlFunc);

            return(View(model));
        }
Example #2
0
 public ActionResult CustomerList(long id)
 {
     return(View(_eventCustomerReportingService.GetCustomerScheduleModel(id)));
 }