예제 #1
0
  @Override
  public Response addUser(User user) {

    user = userService.addUser(user);

    return Response.status(Response.Status.CREATED).entity(user).build();
  }
예제 #2
0
  @Override
  public void deleteUser(@PathParam("Id") int Id) {

    userService.deleteUser(Id);
  }
예제 #3
0
 @Override
 public List<User> retrieveUsers() {
   return userService.findAll();
 }