void RemoveFilm_CanExecute(object sender, CanExecuteRoutedEventArgs e) { FilmVm param = null; e.CanExecute = (param = e.Parameter as FilmVm) != null; //if (!e.CanExecute) // Console.WriteLine(false); }
public ActionResult Create(FilmVm FilmVm) { filmService.Add(new Film() { Description = FilmVm.Description, ImageUrl = FilmVm.ImageUrl, Genre = FilmVm.Genre, Titre = FilmVm.Titre, }); filmService.Commit(); return(RedirectToAction("Index")); }