public IEnumerable <Joke> ViewAll() { var jokeRepo = new JokesRepository(_connectionString); return(jokeRepo.GetAll()); }
public IActionResult ViewAll() { var repo = new JokesRepository(_connectionString); return(View(repo.GetAll())); }
public IEnumerable <Joke> ViewAll() { var jokeRepo = new JokesRepository(_connectionString); return(jokeRepo.GetAll()); }
public IActionResult ViewAll() { var repo = new JokesRepository(_connectionString); return(View(repo.GetAll())); }