// get list of All valid suppliers public List <Supplier> GetAllSuppliersBL() { List <Supplier> supplierList = null; try { SupplierDAL supplierDAL = new SupplierDAL(); supplierList = supplierDAL.GetAllSuppliersDAL(); } catch (Exception ex) { throw new InventoryException(ex.Message); } return(supplierList); }
public static List <Supplier> GetAllSuppliersBL() { List <Supplier> guestList = null; try { SupplierDAL supplierDAL = new SupplierDAL(); supplierList = supplierDAL.GetAllSuppliersDAL(); } catch (Inventory ex) { throw ex; } catch (Exception ex) { throw ex; } return(supplierList); }