Esempio n. 1
0
 public List <AlimentDto> GetByCategory(EnumAlimentCategory category)
 {
     return(_alimentRepository.GetByCategory(category).Select(a => _mapper.Map <AlimentDto>(a)).ToList());
 }
Esempio n. 2
0
 public List <Aliment> GetByCategory(EnumAlimentCategory category)
 {
     return(GetAll().Where(a => a.Category == category).ToList());
 }