Пример #1
0
        public ActionResult Index()
        {
            var model = _contestsService.GetContests(false);

            return(View(model));
        }
Пример #2
0
        public ActionResult Contests()
        {
            var contests = _contestsService.GetContests(true);

            return(View(contests));
        }
        public async Task <IActionResult> Index()
        {
            var contests = await _contestsService.GetContests();

            return(Ok(contests));
        }