public TonGiaoSoap[] getDSTonGiao() { try { List<TonGiao> result = TonGiaoLocalServiceUtil.findByStatus(Constants.ACTIVATED); if (result != null) { return TonGiaoSoap.toSoapModels(result); } } catch (Exception e) { // TODO: handle exception } return null; }
public TonGiaoSoap getTonGiaoTheoId(Long id) { try { TonGiao result = TonGiaoLocalServiceUtil.fetchTonGiao(id); if (result != null) { return TonGiaoSoap.toSoapModel(result); } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; }