accRoleDao.create(assignId(newAccount, role));
}
@Override
public Accountrole assignId(Account newAccount, int role) {
Role getRole = roleDao.find(role);
Accountrole newAccRole = new Accountrole();
newAccRole.setAccountid(newAccount);
newAccRole.setRoleid(getRole);
return newAccRole;