Example #1
0
        public ActionResult ShowCoefficient(int id)
        {
            IReadOnlyList <Event> events = matchProvider.GetEventByMatch(id);

            if (events == null)
            {
                log.Error("Controller: Match, Action: ShowCoefficient Don't Show Coefficient");
                return(RedirectToAction("InfoError", "Error"));
            }

            return(View(events));
        }
Example #2
0
        public ActionResult ShowCoefficient(int matchId)
        {
            ViewBag.Match = matchId;
            Match match = matchProvider.GetMatchById(matchId);

            if (match == null)
            {
                log.Error("Controller: Sort, Action: ShowCoefficient Don't GetMatchById");
                return(RedirectToAction("InfoError", "Error"));
            }
            ViewBag.MatchDate = match.Date;
            IReadOnlyList <Event> events = matchProvider.GetEventByMatch(matchId);

            if (events == null)
            {
                log.Error("Controller: Sort, Action: ShowCoefficient Don't GetEventByMatch");
                return(RedirectToAction("InfoError", "Error"));
            }

            return(View(events));
        }