class AssetController {

    @ApiOperation(httpMethod = "POST", value = "Save or Update User Asset Groups")
    @PostMapping(value = "/v1/save-or-update/assetgroup")
    public ResponseEntity<Object> saveOrUpdateAssetGroup(
            @ApiParam(value = "Provide Default Asset Group and the User Id", required = true) @RequestBody(required = true) DefaultUserAssetGroup defaultUserAssetGroup) {
        boolean isSavedOrUpdated = assetService.saveOrUpdateAssetGroup(defaultUserAssetGroup);
        if (isSavedOrUpdated) {
            return ResponseUtils.buildSucessResponse(HttpStatus.OK);
        } else {
            return ResponseUtils.buildFailureResponse(new Exception("Default User Asset Group Saving Failed"));
        }
    }

}