Пример #1
0
        public IActionResult Index()
        {
            var liste = GerichtService.All();

            var vm = new GerichtServiceIndexViewModel
            {
                Alle = liste
            };

            return(View(vm));
        }
Пример #2
0
        public IActionResult Index()
        {
            var liste = GerichtService.All();

            var vm = new IndexViewModel
            {
                Random = GerichtService.Random(),
                Alle   = liste,
                Tags   = TagService.All(),
                Filter = new FilterSettings()
            };

            return(View(vm));
        }