Beispiel #1
0
 public ActionResult Create(ActorView actorView)
 {
     if (ModelState.IsValid)
     {
         actorView.CountryId = DB.GetCountryId(actorView.CountryName);
         DB.AddActor(actorView);
     }
     return(RedirectToAction("Index"));
 }
Beispiel #2
0
 public ActionResult Create(ActorView actorView, List <int> SelectedItems /*Liste des Id des films sélectionés*/)
 {
     DB.AddActor(actorView, SelectedItems);
     return(RedirectToAction("Index"));
 }