public ActionResult SuppressionComp(int id) { DCCompetition dc = new DCCompetition(); dc.Delete(id); return(Redirect("~/Home/Connect")); }
public ActionResult ModifierComp(String nom, DateTime dateD, DateTime dateF, string pays, string type, string nbrJ, int idSC, int idComp) { DCCompetition dc = new DCCompetition(); dc.Update(idComp, HttpUtility.HtmlEncode(nom), dateD, dateF, pays, HttpUtility.HtmlEncode(type), HttpUtility.HtmlEncode(nbrJ), idSC); return(Redirect("~/Competition/InfoComp/" + idComp)); }
public ActionResult AjoutComp(String nom, DateTime dateD, DateTime dateF, string pays, string type, string nbrJ, int idCat) { DCCompetition dc = new DCCompetition(); dc.Insert(HttpUtility.HtmlEncode(nom), dateD, dateF, pays, HttpUtility.HtmlEncode(type), HttpUtility.HtmlEncode(nbrJ), idCat, (int)Session["idSC"]); return(Redirect("~/Competition/GetComp/" + Session["idSC"])); }
public Competition GetInformation() { DCCompetition dc = new DCCompetition(); Competition comp = dc.find(id); Poule p = new Poule(); comp.Tournoi = new DCTournoi().find(id); if (comp.NbrJoueur == "Individuel") { comp.LPoule = p.GetListPoule(id); } else if (comp.NbrJoueur == "Equipe") { comp.LPoule = p.GetListPouleEquipe(id); } if (comp.Tournoi != null) { comp.Tournoi.GetListMatch(comp.nbrJoueur); } return(comp); }
public List <Competition> GetListNoSousCat(int id) { DCCompetition dc = new DCCompetition(); return(dc.findAllCompNoCat(id)); }
public List <Competition> GetList() { DCCompetition dc = new DCCompetition(); return(dc.findAll()); }
internal List <Competition> GetListTrie(string nom, int?an, string sexe, string nbrJ, int idSousCat) { DCCompetition dc = new DCCompetition(); return(dc.FindListTrie(nom, an, sexe, nbrJ, idSousCat)); }