public MainWindowViewModel() { Directors = _dALDirector.AllDirectors(); Distributors = _dALDistributor.AllDistributors(); Actors = _dALActor.AllActors(); Genres = _dALGenre.AllGenres(); Movies = _dALMovie.AllMovies(); Cinemas = _dALCinema.AllCinemas(); Places = _dALPlace.AllPlaces(); }
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); }
// GET: api/Actor public List <Actor> GetActors() { return(_dALActor.AllActors()); }