public RedirectToActionResult Delete()
        {
            var session = new NFLSession(HttpContext.Session);
            var cookies = new NFLCookies(Response.Cookies);

            session.RemoveMyTeams();
            cookies.RemoveMyTeamsIDs();

            TempData["message"] = "Favorite Teams are cleared";
            return(RedirectToAction("Index", "Home",
                                    new { activeConf = session.GetActiveConf(), activeDiv = session.GetActiveDiv() }));
        }
        public RedirectToActionResult Delete()
        {
            var session = new NFLSession(HttpContext.Session);
            var cookies = new NFLCookies(Response.Cookies);

            session.RemoveMyTeams();
            cookies.RemoveMyTeamIds();

            TempData["Message"] = $"Favorite teams deleted.";

            return(RedirectToAction("Index", "Home", new { ActiveConferend = session.GetActiveConference(), ActiveDivision = session.GetActiveDivision() }));
        }
Exemple #3
0
        public RedirectToActionResult Delete()
        {
            var session = new NFLSession(HttpContext.Session);

            session.RemoveMyTeams();

            TempData["message"] = "Favorite teams cleared";

            return(RedirectToAction("Index", "Home",
                                    new {
                ActiveConf = session.GetActiveConf(),
                ActiveDiv = session.GetActiveDiv()
            }));
        }