public IActionResult Index()
        {
            var model = _repo.GetAllRiddle();

            return(View(model));
        }
Example #2
0
 public IActionResult Index(string riddleType) =>
 View(string.IsNullOrEmpty(riddleType) ? _repo.GetAllRiddle() : _repo.GetAllRiddle(riddleType));