public IEnumerable <Joke> ViewAll()
        {
            var jokeRepo = new JokesRepository(_connectionString);

            return(jokeRepo.GetAll());
        }
Beispiel #2
0
        public IActionResult ViewAll()
        {
            var repo = new JokesRepository(_connectionString);

            return(View(repo.GetAll()));
        }