Exemplo n.º 1
0
 public MainWindowViewModel()
 {
     Directors    = _dALDirector.AllDirectors();
     Distributors = _dALDistributor.AllDistributors();
     Actors       = _dALActor.AllActors();
     Genres       = _dALGenre.AllGenres();
     Movies       = _dALMovie.AllMovies();
     Cinemas      = _dALCinema.AllCinemas();
     Places       = _dALPlace.AllPlaces();
 }
Exemplo n.º 2
0
        private List <string> AllActors()
        {
            _allActors = new List <string>();
            var allActors = _dALActor.AllActors();

            foreach (var actor in allActors)
            {
                _allActors.Add(actor.Name + " " + actor.Surname);
            }
            return(_allActors);
        }
Exemplo n.º 3
0
 // GET: api/Actor
 public List <Actor> GetActors()
 {
     return(_dALActor.AllActors());
 }