예제 #1
0
        public IEnumerable <User> Get()
        {
            var allUser = new AllUserQuery();
            var users   = _queryDispatcher.Execute <AllUserQuery, IEnumerable <User> >(allUser);

            return(users);
        }
예제 #2
0
 public IEnumerable <User> Execute(AllUserQuery query)
 {
     return(_repository.Get());
 }
예제 #3
0
 public Task <IEnumerable <User> > ExecuteAsync(AllUserQuery query)
 {
     return(_userReader.AllAsync());
 }