@RequestMapping(value = "/Salutation/delete", method = RequestMethod.GET) public @ResponseBody RequestStatus deleteSalutation( @RequestParam(value = "id", required = true) Integer id) { service.delete(id); return RequestStatusHelper.GenerateRequestStatusDeleteOperation(); }
@RequestMapping(value = "/Salutation/saveOrUpdate", method = RequestMethod.POST) public @ResponseBody RequestStatus saveOrUpdateSalutation(@RequestBody Salutation salutation) { service.saveOrUpdate(salutation); return RequestStatusHelper.GenerateRequestStatusSaveOperation(); }
@RequestMapping(value = "/Salutation/add", method = RequestMethod.GET) public @ResponseBody RequestStatus renderAddSalutation(@RequestBody Salutation salutation) { service.add(salutation); return RequestStatusHelper.GenerateRequestStatusSaveOperation(); }
@RequestMapping(value = "/Salutation/get", method = RequestMethod.GET) public @ResponseBody Salutation getSalutation( @RequestParam(value = "id", required = true) Integer id) { Salutation salutation = service.get(id); return salutation; }
@RequestMapping(value = "/Salutation/listByCompany", method = RequestMethod.GET) public @ResponseBody List<Salutation> listByCompany( @RequestParam(value = "id", required = true) Integer id) { List<Salutation> list = service.getAllByCompany(id); return list; }
@RequestMapping(value = "/Salutation/list", method = RequestMethod.GET) public @ResponseBody List<Salutation> listSalutation() { List<Salutation> list = service.getAll(); return list; }