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() })); }
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() })); }