public ActionResult Create(FilmVM filmVM)
        {
            Film F = new Film()
            {
                Id          = filmVM.Id,
                Description = filmVM.Description,
                Genre       = filmVM.Genre,
                ImageUrl    = filmVM.ImageUrl,
                OutDate     = filmVM.OutDate,
                Title       = filmVM.Title
            };

            service.Add(F);
            service.Commit();
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
 public ActionResult Create(Film film)
 {
     service.Add(film);
     service.Commit();
     return(RedirectToAction("Index"));
 }