checkModifyPermission();
List<Language> languages = languageAdminModel.getList(new PageParam());
List<ReturnAction> list = new ArrayList<ReturnAction>();
for(Language language: languages){
ReturnAction returnAction = new ReturnAction();
returnAction.setLanguageId(language.getId());
returnAction.setLanguageName(language.getName());
returnAction.setLanguageImage(language.getImage());
list.add(returnAction);
}
ReturnActions returnActions = new ReturnActions(list);
returnActions.setNewEntities(true);
model.addAttribute("returnActions", returnActions);