Exemple #1
0
        public async Task <IEnumerable <ProBasketDto> > Handle(GetProBasket request, CancellationToken cancellationToken)
        {
            var query = await repo.ReadAll();

            return(mapper.Map <IEnumerable <ProBasketDto> >(query));
        }
Exemple #2
0
        public async Task <IEnumerable <ProBasketDto> > Handle(GetProBasketById request, CancellationToken cancellationToken)
        {
            var query = await reposiotry.ReadAll(x => x.id == request.id);

            return(mapper.Map <IEnumerable <ProBasketDto> >(query));
        }