public VendorCollection GetVendorsCollection(string where, string orderBy) { VendorData data = new VendorData(); VendorCollection col = new VendorCollection(); try { col = data.GetAllVendorsDynamicCollection(where, orderBy); } catch (Exception ex) { log.Write(ex.Message, "GetVendorsCollection"); throw (ex); } finally { data = null; } return(col); }
public VendorCollection GetAllVendorsCollection() { VendorData data = new VendorData(); VendorCollection col = new VendorCollection(); try { col = data.GetAllVendorsCollection(); } catch (Exception ex) { log.Write(ex.Message, "GetAllVendorsCollection"); throw (ex); } finally { data = null; } return(col); }