Legend:
- Unmodified
- Added
- Removed
-
src/main/java/finki/it/terapijamkbackend/spring/services/CouponsService.java
r743de55 r43c9090 9 9 import java.util.List; 10 10 import java.util.Optional; 11 import java.util.stream.Collectors; 11 12 12 13 @Service … … 33 34 return couponRepository.findByTitle(identifier); 34 35 } 36 public List<String> getCouponNames() { 37 return couponRepository.findAll().stream() 38 .map(Coupon::getCode) 39 .collect(Collectors.toList()); 40 } 35 41 36 42 public void save(Coupon coupon) {
Note:
See TracChangeset
for help on using the changeset viewer.