public ActionResult EditFilmScreening(Filmscreenings screenings) { if (ModelState.IsValid) { screenings.Activities.typeActivity = 1; screenings.Activities.id = screenings.activityId; try { activitiesRepo.ModifyActivity(screenings); return(RedirectToAction("Index")); } catch { return(HttpNotFound()); } } ViewBag.IsEditing = true; FillFilmscreeninsDropdownsWithSecection(screenings.roomId, screenings.filmId); return(View(screenings)); }