public ActionResult <FetchBrandsResponse> GetBrands()
        {
            var fetchBrandsRequest  = new FetchBrandRequest {
            };
            var fetchBrandsResponse = _brandService.GetBrands(fetchBrandsRequest);

            return(fetchBrandsResponse);
        }
示例#2
0
        public FetchBrandsResponse GetBrands(FetchBrandRequest fetchBrandsRequest)
        {
            var brands    = _brandRepository.GetAllBrands();
            var brandDtos = _messageMapper.MapToBrandDtos(brands);

            return(new FetchBrandsResponse
            {
                Brands = brandDtos
            });
        }