@Override public QuocGiaSoap getQuocGiaTheoId(Long id) { // TODO Auto-generated method stub try { return QuocGiaSoap.toSoapModel(QuocGiaLocalServiceUtil.getQuocGia(id)); } catch (Exception e) { // TODO Auto-generated catch block } return null; }
@Override public QuocGiaSoap[] getDanhSachQuocGia() { try { List<QuocGia> quocGias = QuocGiaLocalServiceUtil.findAll(); QuocGiaSoap[] result = null; if (quocGias != null && quocGias.size() > 0) { result = QuocGiaSoap.toSoapModels(quocGias); } return result; } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } return null; }