Example #1
0
 // GET: Organisations/Create
 public IActionResult Create()
 {
     ViewData["PersonneId"] = new SelectList(_context.Set <Personne>(), "Id", "PrenomNom");
     ViewData["PosteId"]    = new SelectList(_context.Set <Poste>(), "Id", "Nom");
     ViewData["TournoiId"]  = new SelectList(_context.Set <Tournoi>(), "Id", "Description");
     return(View());
 }
Example #2
0
 // GET: Championnats/Create
 public IActionResult Create()
 {
     ViewData["JeuxId"]    = new SelectList(_context.Set <Jeux>(), "Id", "Nom");
     ViewData["TournoiId"] = new SelectList(_context.Set <Tournoi>(), "Id", "Description");
     return(View());
 }
 // GET: Participants/Create
 public IActionResult Create()
 {
     ViewData["ChampionnatId"] = new SelectList(_context.Championnat, "Id", "Nom");
     ViewData["PersonneId"]    = new SelectList(_context.Set <Personne>(), "Id", "PrenomNom");
     return(View());
 }