Exemplo n.º 1
0
        public MainViewModel()
        {
            _listFilms = new ObservableCollection <Film>();
            FilmServices fs = new FilmServices();

            List <Film> films = new List <Film>();

            films.AddRange(fs.GetAll());

            foreach (Film item in films)
            {
                _listFilms.Add(item);
            }
        }
 public List <Film> GetListFilm()
 {
     return(DalFilm.GetAll());
 }