public ActionResult <FetchBrandsResponse> GetBrands() { var fetchBrandsRequest = new FetchBrandRequest { }; var fetchBrandsResponse = _brandService.GetBrands(fetchBrandsRequest); return(fetchBrandsResponse); }
public FetchBrandsResponse GetBrands(FetchBrandRequest fetchBrandsRequest) { var brands = _brandRepository.GetAllBrands(); var brandDtos = _messageMapper.MapToBrandDtos(brands); return(new FetchBrandsResponse { Brands = brandDtos }); }