public FetchBrandsResponse GetBrands(FetchBrandsRequest fetchBrandsRequest) { var brands = _brandRepository.GetAllBrands(); var brandDtos = _messageMapper.MapToBrandDtos(brands); return(new FetchBrandsResponse { Brands = brandDtos }); }
public FetchBrandResponse FetchBrand(FetchBrandsRequest fetchBrandsRequest) { var brands = brandRepository.GetAllcategories(); var brandDtos = messageMapper.MapToBrandDtos(brands); return(new FetchBrandResponse { Brands = brandDtos }); }