public ActionResult Index()
        {
            try
            {
                MatchesDBContext matchesDBContext = new MatchesDBContext();
                DataSet          dsMatchesPlayers = new DataSet();
                dsMatchesPlayers = matchesDBContext.GetMatchesPlayers();

                Matches matches = new Matches();
                matches = getMatchResults(dsMatchesPlayers);
                return(View(matches));
            }
            catch (Exception ex)
            {
                return(View("Error", new HandleErrorInfo(ex, "Matches", "Index")));
            }
        }
        public ActionResult AdminIndex()
        {
            try
            {
                if (Convert.ToString(Session["Role"]) == "Admin")
                {
                    MatchesDBContext matchesDBContext = new MatchesDBContext();
                    DataSet          dsMatchesPlayers = new DataSet();
                    dsMatchesPlayers = matchesDBContext.GetMatchesPlayers();

                    Matches matches = new Matches();
                    matches = getMatchResults(dsMatchesPlayers);
                    return(View(matches));
                }
                else
                {
                    return(View("~/Views/PageNotFound.cshtml"));
                }
            }
            catch (Exception ex)
            {
                return(View("Error", new HandleErrorInfo(ex, "Matches", "Index")));
            }
        }