Exemplo n.º 1
0
            public async Task <Result <GetBrandByIdResponse> > Handle(GetBrandByIdQuery query, CancellationToken cancellationToken)
            {
                var product = await _brandCache.GetByIdAsync(query.Id);

                var mappedProduct = _mapper.Map <GetBrandByIdResponse>(product);

                return(Result <GetBrandByIdResponse> .Success(mappedProduct));
            }