public TinhTrangHonNhanSoap[] getDSTinhTrangHonNhan() { try { List<TinhTrangHonNhan> result = TinhTrangHonNhanLocalServiceUtil.getAll(Constants.ACTIVATED); if (result != null) { return TinhTrangHonNhanSoap.toSoapModels(result); } } catch (Exception e) { // TODO: handle exception } return null; }
public TinhTrangHonNhanSoap getTinhTrangHonNhanTheoId(Long id) { try { TinhTrangHonNhan honNhan = TinhTrangHonNhanLocalServiceUtil.fetchTinhTrangHonNhan(id); if (honNhan != null) { return TinhTrangHonNhanSoap.toSoapModel(honNhan); } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; }