public async Task <Result <GetBrandByIdResponse> > Handle(GetBrandByIdQuery query, CancellationToken cancellationToken)
            {
                var product = await _brandRepository.GetByIdAsync(query.Id);

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

                return(Result <GetBrandByIdResponse> .Success(mappedProduct));
            }
        public async Task <Result <GetBrandByIdResponse> > Handle(GetBrandByIdQuery query, CancellationToken cancellationToken)
        {
            var brand = await _unitOfWork.Repository <Brand>().GetByIdAsync(query.Id);

            var mappedBrand = _mapper.Map <GetBrandByIdResponse>(brand);

            return(await Result <GetBrandByIdResponse> .SuccessAsync(mappedBrand));
        }