public ActionResult ListComp(string nom, int?an, string sexe, string nbrJ) { Competition comp = new Competition(); List <CPays> listePays = new CPays().GetListPays(); Session["listePays"] = new SelectList(listePays, "Id", "Pays"); List <Competition> triedList = new List <Competition>(); foreach (Competition c in comp.GetListTrie(nom, an, sexe, nbrJ, (int)Session["idSC"])) { if (c.SousCat.Id == (int)Session["idSC"]) { c.GetTournoi(); triedList.Add(c); } } Session["triedList"] = triedList; return(Redirect("GetComp/" + Session["idSC"])); }