Esempio n. 1
0
        public IEnumerable <DtoBrand> GetBrandsList()
        {
            var brands = _brandRepository.All()
                         .Select(br => new DtoBrand
            {
                Id   = br.Id,
                Name = br.Name
            });

            return(brands);
        }
Esempio n. 2
0
 public List <Brand> GetAll()
 {
     return(_brandRepository.All().ToList());
 }