Exemple #1
0
        public ActionResult RemoveFilter(int filterId)
        {
            var filter = filterService.GetFilterById(filterId);

            if (filter != null)
            {
                var filterViewModel = filterViewModelFactory.CreateFilterViewModel(filter);
                return(PartialView(filterViewModel));
            }
            return(View("Dashboard"));
        }
Exemple #2
0
        public ActionResult MonitoringPage(int filterId, int?page)
        {
            var lotDtos   = lotService.GetLotDtos(filterId);
            var filterDto = filterService.GetFilterById(filterId);
            var monitoringPageViewModel = lotViewModelFactory.CreateMonitoringPageViewModel
                                              (lotViewModelFactory.CreateLotViewModels(lotDtos), filterViewModelFactory.CreateFilterViewModel(filterDto), page);

            return(View(monitoringPageViewModel));
        }