Example #1
0
        public RedirectToActionResult Delete()
        {
            var session = new OlympicSession(HttpContext.Session);
            var cookies = new FavoriteCookies(Response.Cookies);

            session.RemoveMyFavs();
            cookies.RemoveMyTeamIds();

            TempData["message"] = "Favorites cleared";

            return(RedirectToAction("Index", "Home", new
            {
                game = session.GetActiveGame(),
                category = session.GetActiveCategory()
            }));
        }