@RequestMapping(method = RequestMethod.DELETE) public Map<String, Object> deleteAllCheckCardRequests() { checkCardRequestService.deleteAllCheckCardRequests(); Map<String, Object> response = new LinkedHashMap<String, Object>(); response.put("message", "All checkCreditCardRequest deleted"); return response; }
@RequestMapping(method = RequestMethod.GET) public List<CheckCardRequest> getAllCheckCardRequests() { return checkCardRequestService.getAllCheckCardRequests(); }