@RequestMapping(method = RequestMethod.PUT, value = "{id}")
    public void finishTask(@PathVariable("id") Integer id, @RequestParam String action) {
        switch (Action.valueOf(action)) {
            case FINISH:
                tasksService.finishById(id);
                break;
        }
    }