public static IEnumerable <Director> Handle(ListDirectors listDirectors, UserAllowed userAllowed) { var currentUserAllowed = userAllowed(); if (!currentUserAllowed) { return(null); } var directors = listDirectors(); return(directors); }
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>()); }
public async Task <IEnumerable <DirectorDTO> > ListAsync(ListDirectors query) { throw new System.NotImplementedException(); }