Exemplo n.º 1
0
        public IEnumerable <Film> GetFilmsWatchlist(string titel = null, string acteurNaam = null, string regisseurNaam = null)
        {
            Gebruiker g = _gebruikerRepo.GetBy(User.Identity.Name);

            if (string.IsNullOrWhiteSpace(titel) && string.IsNullOrWhiteSpace(acteurNaam) && string.IsNullOrWhiteSpace(regisseurNaam))
            {
                return(g.GetAllFilms());
            }
            return(g.GetFilmWatchlistBy(titel, acteurNaam, regisseurNaam));
        }