Advertisement
yony258

Untitled

Dec 11th, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. @RequestMapping(params = "findAvailableTime", method = RequestMethod.POST)
  2. public void onFindTimesClick(ModelMap model, Appointment appointment,
  3. @RequestParam(value = "fromDate", required = false) Date fromDate,
  4. @RequestParam(value = "toDate", required = false) Date toDate,
  5. @RequestParam(value = "location", required = false) Location location) throws Exception {
  6.  
  7. if (Context.isAuthenticated()) {
  8. if (fromDate == null)
  9. getAvailableTimes(new Date(), toDate, location);
  10. else
  11. getAvailableTimes(fromDate, toDate, location);
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement