public JsonResult getPlayers()
        {
            int ID = Convert.ToInt32(User.Claims.Single(c => c.Type == "userid").Value);

            try
            {
                return(Json(playerRepo.getPlayers(ID)));
            }
            catch (Exception ex)
            {
                logError(ex);
                return(Json(null));
            }
        }