Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Khalid Ali
bookshare-backend
Commits
5c838a92
Commit
5c838a92
authored
Jan 12, 2019
by
Khalid Ali
Browse files
Add ShareUser Dto conversion
parent
efd22e6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/gmu/bookshare/web/BookshareApiController.java
View file @
5c838a92
...
...
@@ -2,8 +2,10 @@ package com.gmu.bookshare.web;
import
com.gmu.bookshare.entity.BidEntity
;
import
com.gmu.bookshare.entity.ListingEntity
;
import
com.gmu.bookshare.entity.ShareUser
;
import
com.gmu.bookshare.model.BidDto
;
import
com.gmu.bookshare.model.ListingDto
;
import
com.gmu.bookshare.model.ShareUserDto
;
import
com.gmu.bookshare.service.BidService
;
import
com.gmu.bookshare.service.ListingService
;
import
com.gmu.bookshare.service.ShareUserService
;
...
...
@@ -140,4 +142,12 @@ public class BookshareApiController {
private
BidEntity
convertBidToEntity
(
BidDto
bidDto
)
{
return
modelMapper
.
map
(
bidDto
,
BidEntity
.
class
);
}
private
ShareUserDto
convertShareUserToDto
(
ShareUser
shareUser
)
{
return
modelMapper
.
map
(
shareUser
,
ShareUserDto
.
class
);
}
private
ShareUser
convertShareUserToEntity
(
ShareUserDto
shareUserDto
)
{
return
modelMapper
.
map
(
shareUserDto
,
ShareUser
.
class
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment