public List<T_Suppliers> getSupplierList(string spno, string spname) { sh = new SupplierHelper(); return sh.getSupplierList(spno, spname); }
public List<T_Base_suppliertype> getSuptypeLst() { try { sh = new SupplierHelper(); return sh.getSuptypLst(); } catch (Exception ex) { throw ex; } }
public T_Suppliers getSupplierbyId(int sid) { try { sh = new SupplierHelper(); return sh.getSupplierbyId(sid); } catch (Exception ex) { throw ex; } }
public List<T_Suppliers_contacts> getSupplierContacts(int supplierid) { try { sh = new SupplierHelper(); return sh.getSupplierContacts(supplierid); } catch (Exception ex) { throw ex; } }
public List<T_Suppliers> getAllSupplier() { try { sh = new SupplierHelper(); return sh.getSupplierList(); } catch (Exception ex) { throw ex; } }
public void EditSupplierContacts(T_Suppliers_contacts contact) { try { sh = new SupplierHelper(); sh.UpdateSupplierContacts(contact); } catch (Exception ex) { throw ex; } }
public void EditSupplier(T_Suppliers supplier) { try { sh = new SupplierHelper(); sh.updateSupplier(supplier); } catch (Exception ex) { throw ex; } }
public void DeleteSupplier(T_Suppliers supplier) { try { sh = new SupplierHelper(); sh.delSupplier(supplier); } catch (Exception ex) { throw ex; } }
public void addNewSupplier(T_Suppliers newsupplier) { try { sh = new SupplierHelper(); sh.addNewSupplier(newsupplier); } catch (Exception ex) { throw ex; } }