public IEnumerable <User> Get() { var allUser = new AllUserQuery(); var users = _queryDispatcher.Execute <AllUserQuery, IEnumerable <User> >(allUser); return(users); }
public IEnumerable <User> Execute(AllUserQuery query) { return(_repository.Get()); }
public Task <IEnumerable <User> > ExecuteAsync(AllUserQuery query) { return(_userReader.AllAsync()); }