Exemplo n.º 1
0
        protected override async Task <IEnumerable <SpaceView> > HandleInput(FindByValueParams <string> input)
        {
            using (var connection = database.GetConnection()) {
                ISubscriptionRepo subRepo = database.GetRepo <ISubscriptionRepo>(connection);

                IEnumerable <Subscription> subs = await subRepo.FindByUser(input.Value);

                return(subs.Select(s => spaceMapper.Map(s.Space)));
            }
        }