public void DeleteLine(int lineID) { try { dl.DeleteLine(lineID); dl.DeleteLineStationBy(st => st.LineId == lineID); } catch (DO.BadLineCodeException) { throw new BO.BadLineCodeException(lineID); } }