public ActionResult Index() { var model = _contestsService.GetContests(false); return(View(model)); }
public ActionResult Contests() { var contests = _contestsService.GetContests(true); return(View(contests)); }
public async Task <IActionResult> Index() { var contests = await _contestsService.GetContests(); return(Ok(contests)); }