public ActionResult Create(FilmPart filmpart)
        {
            if (ModelState.IsValid)
            {
                db.FilmParts.Add(filmpart);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            ViewBag.FilmId = new SelectList(db.Films, "Id", "ImageUrl", filmpart.FilmId);
            return View(filmpart);
        }
 public ActionResult Edit(FilmPart filmpart)
 {
     if (ModelState.IsValid)
     {
         db.Entry(filmpart).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.FilmId = new SelectList(db.Films, "Id", "ImageUrl", filmpart.FilmId);
     return View(filmpart);
 }