public IEnumerable <DtoBrand> GetBrandsList() { var brands = _brandRepository.All() .Select(br => new DtoBrand { Id = br.Id, Name = br.Name }); return(brands); }
public List <Brand> GetAll() { return(_brandRepository.All().ToList()); }