Exemplo n.º 1
0
        public static IEnumerable <Director> Handle(ListDirectors listDirectors, UserAllowed userAllowed)
        {
            var currentUserAllowed = userAllowed();

            if (!currentUserAllowed)
            {
                return(null);
            }

            var directors = listDirectors();

            return(directors);
        }
Exemplo n.º 2
0
        public static IEnumerable <Director> Handle(ListDirectors listDirectors, UserAllowed userAllowed, SharedDelegateExample sharedDelegateExample)
        {
            var truthy = sharedDelegateExample();

            var currentUserAllowed = userAllowed();

            if (!currentUserAllowed)
            {
                return(null);
            }

            var directors = listDirectors();

            return(directors ?? Enumerable.Empty <Director>());
        }
Exemplo n.º 3
0
 public async Task <IEnumerable <DirectorDTO> > ListAsync(ListDirectors query)
 {
     throw new System.NotImplementedException();
 }