public IActionResult UpdateIndex(PaymentsWithFilterViewModel viewModel)
        {
            var filters  = viewModel.Filter.GetFilters();
            var payments = _repository.FindAll(payment => filters.All(filter => filter(payment)));

            return(View("Index", new PaymentsWithFilterViewModel {
                Payments = payments
            }));
        }
        public IActionResult Index()
        {
            var payments  = _repository.FindAll();
            var viewModel = new PaymentsWithFilterViewModel {
                Payments = payments
            };

            return(View(viewModel));
        }