Exemplo n.º 1
0
        void RemoveFilm_CanExecute(object sender, CanExecuteRoutedEventArgs e)
        {
            FilmVm param = null;

            e.CanExecute = (param = e.Parameter as FilmVm) != null;
            //if (!e.CanExecute)
            //    Console.WriteLine(false);
        }
Exemplo n.º 2
0
        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"));
        }