Пример #1
0
 public void ImportWideReceivers(int id)
 {
     string sessionId = HttpContext.Session.SessionID;
     NumberFireConnection numberFireConnection = new NumberFireConnection(id, sessionId);
     numberFireConnection.ImportWrHtml();
 }
Пример #2
0
 public void ImportRunningBacks(int id)
 {
     string sessionId = HttpContext.Session.SessionID;
     NumberFireConnection numberFireConnection = new NumberFireConnection(id, sessionId);
     numberFireConnection.ImportRbHtml();
 }
Пример #3
0
 public void ImportTightEnds(int id)
 {
     string sessionId = HttpContext.Session.SessionID;
     NumberFireConnection numberFireConnection = new NumberFireConnection(id, sessionId);
     numberFireConnection.ImportTeHtml();
 }
Пример #4
0
        // GET: Teams/LeagueId
        public ActionResult Index(int? id)
        {
            if (id == null)
            {
                return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
            }

            LeagueView leagueView = new LeagueView(id.GetValueOrDefault());
            string sessionId = HttpContext.Session.SessionID;

            if (leagueView.League.CurrentSessionId == sessionId)
            {
                NumberFireConnection numberFireConnection = new NumberFireConnection(leagueView.League.LeagueId, sessionId);
                numberFireConnection.ImportPlayers();
            }

            return View(leagueView);
        }