Hello,
I have many-to-many relationship in NHibernate between two classes Actor and Movie.
public ActionResult removeMovieFromActor(int MovieId, int ActorId)
{
ViewData["SectionTitle"] = "Usunięcie filmu";
ActorsRepository ar = new ActorsRepository();
Actor act = ar.getActor(ActorId);
//what to do here?
return RedirectToAction("listMovies");
}
How can I remove a Movie from act.Movies and make that persistent to the db?