public MaintenanceObjectCollection GetMaintenancesByMaterialID(MaterialObject material) { MaintenanceObjectCollection maintenances; try { maintenances = new MaintenanceDataService().GetMemosByMaintenanceID(material); } catch (System.Exception exception1) { System.Exception innerException = exception1; throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException); } return maintenances; }
public MaintenanceObjectCollection GetAll() { MaintenanceObjectCollection maintenances; try { maintenances = new MaintenanceDataService().GetAll(); } catch (System.Exception exception1) { System.Exception innerException = exception1; throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException); } return maintenances; }