public DataSet GetProductVendorsDataSet(string whereExpression, string orderByExpression) { ProductVendorData data = new ProductVendorData(); DataSet ds = new DataSet(); try { ds = data.GetProductVendorDynamicDataSet(whereExpression, orderByExpression); } catch (Exception ex) { log.Write(ex.Message, "GetProductVendorsDataSet"); throw (ex); } finally { data = null; } return(ds); }
public ProductVendorCollection GetAllProductVendorsCollection() { ProductVendorData data = new ProductVendorData(); ProductVendorCollection col = new ProductVendorCollection(); try { col = data.GetAllProductVendorCollection(); } catch (Exception ex) { log.Write(ex.Message, "GetAllProductVendorsCollection"); throw (ex); } finally { data = null; } return(col); }
public ProductVendor GetProductVendors(int productid) { ProductVendorData data = new ProductVendorData(); ProductVendor pv = new ProductVendor(); try { pv = data.GetProductVendor(productid); } catch (Exception ex) { log.Write(ex.Message, "GetProductVendors"); throw (ex); } finally { data = null; } return(pv); }
public DataSet GetAllProductVendorsDataSet() { ProductVendorData data = new ProductVendorData(); DataSet ds = new DataSet(); try { ds = data.GetAllProductVendorDataSet(); } catch (Exception ex) { log.Write(ex.Message, "GetAllProductVendorsDataSet"); throw (ex); } finally { data = null; } return(ds); }
public bool UpdateProductVendor(ProductVendor productvendor) { ProductVendorData data = new ProductVendorData(); bool ret = false; try { ret = data.UpdateProductVendor(productvendor); } catch (Exception ex) { log.Write(ex.Message, "UpdateProductVendor"); throw (ex); } finally { data = null; } return(ret); }