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