public SupplierObject GetSupplierByEmail(string email) { SupplierObject supplier; try { supplier = new SupplierDataService().GetSupplierByEmail(email); } catch (System.Exception exception1) { System.Exception innerException = exception1; throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException); } return supplier; }
public SupplierObjectCollection GetAll() { SupplierObjectCollection suppliers; try { suppliers = new SupplierDataService().GetAll(); } catch (System.Exception exception1) { System.Exception innerException = exception1; throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException); } return suppliers; }