Пример #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();
 }
Пример #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);
        }
Пример #3
0
 // GET: api/Actor
 public List <Actor> GetActors()
 {
     return(_dALActor.AllActors());
 }