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