Advertisement
Coriic

Untitled

Jan 11th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. public Object hangleCreateNewFolder(Request request, Response response){
  2. FolderMetadata folderMetadata = gson.fromJson(request.body(), FolderMetadata.class);
  3. FolderFolderContents result1 = folderFolderContentsRepository.
  4. storeFolderFolderContens(new FolderFolderContents(folderMetadata.getParentFolderId(),
  5. folderMetadata.getFolderId()));
  6. FolderMetadata result = folderMetadataRepostiory.storeFolderMetadata(folderMetadata);
  7. response.status(CREATED);
  8. return result;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement