Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @RequestMapping(params = "findAvailableTime", method = RequestMethod.POST)
- public void onFindTimesClick(ModelMap model, Appointment appointment,
- @RequestParam(value = "fromDate", required = false) Date fromDate,
- @RequestParam(value = "toDate", required = false) Date toDate,
- @RequestParam(value = "location", required = false) Location location) throws Exception {
- if (Context.isAuthenticated()) {
- if (fromDate == null)
- getAvailableTimes(new Date(), toDate, location);
- else
- getAvailableTimes(fromDate, toDate, location);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement