Exemplo n.º 1
0
        public ActionResult ShowMatches()
        {
            IReadOnlyList <Match> matches = matchProvider.GetMatchesAll();

            if (matches == null)
            {
                log.Error("Controller: Match, Action: ShowMatches Don't GetMatchesAll");
                return(RedirectToAction("InfoError", "Error"));
            }
            return(PartialView(matches));
        }