コード例 #1
0
        public IActionResult Index()
        {
            var model = _repo.GetAllRiddle();

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