//statistics
        public ActionResult Statistics()
        {
            decimal?averageGoalPerTeam   = matchServices.AverageGoalPerTeam();
            decimal?averageGoalsPerMatch = matchServices.AverageGoalsPerMatch();

            ViewData["total"]           = matchServices.TotalGoals();
            ViewData["totalMatches"]    = matchServices.TotalMatchesPlyed();
            ViewData["averagePerTeam"]  = Math.Round((decimal)averageGoalPerTeam, 2);
            ViewData["averagePerMatch"] = Math.Round((decimal)averageGoalsPerMatch, 2);

            return(View());
        }
        public IHttpActionResult Statistics()
        {
            decimal?averageGoalPerTeam   = matchServices.AverageGoalPerTeam();
            decimal?averageGoalsPerMatch = matchServices.AverageGoalsPerMatch();

            var wcStatistics = new
            {
                totalGoals           = matchServices.TotalGoals(),
                totalMatches         = matchServices.TotalMatchesPlyed(),
                averageGoalPerTeam   = Math.Round((decimal)averageGoalPerTeam, 2),
                averageGoalsPerMatch = Math.Round((decimal)averageGoalsPerMatch, 2)
            };

            return(Ok(wcStatistics));
        }