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

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