public ViewResult Index() { var session = new OlympicSession(HttpContext.Session); var model = new CountryListViewModel { ActiveGame = session.GetActiveGame(), ActiveCat = session.GetActiveCat(), Countries = session.GetMyCountries() }; return(View(model)); }
public RedirectToActionResult Delete() { var session = new OlympicSession(HttpContext.Session); session.RemoveMyCountries(); TempData["message"] = "Favorite countries cleared"; return(RedirectToAction("Index", "Country", new { ActiveGame = session.GetActiveGame(), ActiveCat = session.GetActiveCat() })); }