Skip to content
Snippets Groups Projects
Commit c6bb4fb1 authored by xsedlac9's avatar xsedlac9
Browse files

mapper added

parent 563515c7
No related branches found
No related tags found
No related merge requests found
......@@ -23,8 +23,7 @@ public class AccountFacade {
this.accountService = accountService;
this.mapper = mapper;
}
// TODO mapper pre convert DTO -> domain triedu, zavolat service co spracuje poziadavku, konvert domain trieda -> DTO, return DTO
public AccountDto createAccount(NewAccountDto newAccountDto){
Account account = mapper.map(newAccountDto);
return mapper.map(accountService.createAccount(account));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment