public ActionResult DetailsInspireStatusRegistry(string sorting, int?page, string format, FilterParameters filter)
        {
            RemoveSessionsParamsIfCurrentRegisterIsNotTheSameAsReferer();
            var redirectToApiUrl = RedirectToApiIfFormatIsNotNull(format);

            if (!string.IsNullOrWhiteSpace(redirectToApiUrl))
            {
                return(Redirect(redirectToApiUrl));
            }

            var register = _registerService.GetInspireStatusRegister();

            if (register == null)
            {
                return(HttpNotFound());
            }

            if (register.RedirectToNewPath(HttpContext.Request.Path))
            {
                return(RedirectPermanent(register.GetObjectUrl()));
            }

            filter.InspireRegisteryType = GetInspireRegistryType(filter.InspireRegisteryType);
            register = FilterRegisterItems(register, filter);

            List <StatusReport> inspireStatusReports = _statusReportService.GetInspireStatusReports(12);
            StatusReport        statusReport         = filter.SelectedReport != null?_statusReportService.GetStatusReportById(filter.SelectedReport) : inspireStatusReports.FirstOrDefault();


            var viewModel = new RegisterV2ViewModel(register, filter, page, statusReport, inspireStatusReports);

            viewModel.AccessRegister = _accessControlService.AccessViewModel(viewModel);
            viewModel.SelectedInspireRegisteryType = filter.InspireRegisteryType;

            if (viewModel.SelectedInspireRegisteryTypeIsInspireReport())
            {
                viewModel.InspireReport = _inspireMonitoringService.GetInspireReportViewModel(register, filter);
            }

            ItemsOrderBy(sorting, viewModel);
            ViewbagsRegisterDetails(sorting, page, filter, viewModel);

            return(View(viewModel));
        }