public ActionResult CreateFilmscreening(Filmscreenings screenings) { screenings.Activities.typeActivity = 1; screenings.activityId = screenings.Activities.id; if (ModelState.IsValid) { screenings.Activities.typeActivity = 1; screenings.activityId = screenings.Activities.id; try { activitiesRepo.SaveFilmScreening(screenings); return(RedirectToAction("Index")); } catch { return(HttpNotFound()); } } //viewbag moet weer opniew worden gevuld FillFilmscreeninsDropdownsWithSecection(screenings.roomId, screenings.filmId); return(View(screenings)); }